Skip to content

Commit

Permalink
refactor: remove superfluous valid check
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins committed Feb 18, 2021
1 parent 9dc7f84 commit 5af13b1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/workers/repository/process/lookup/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@ export async function lookupUpdates(
);
const res: UpdateResult = { updates: [], warnings: [] } as any;

const isValid = currentValue && versioning.isValid(currentValue);
if (!isValid) {
res.skipReason = SkipReason.InvalidValue;
}
// Record if the dep is fixed to a version
if (lockedVersion) {
res.fixedVersion = lockedVersion;
Expand All @@ -62,6 +58,7 @@ export async function lookupUpdates(
return res;
}

const isValid = currentValue && versioning.isValid(currentValue);
if (isValid) {
const dependency = clone(await getPkgReleases(config));
if (!dependency) {
Expand Down

0 comments on commit 5af13b1

Please sign in to comment.