Skip to content

Commit

Permalink
fix(lookup): check currentValue before isValid
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins committed Mar 5, 2020
1 parent fee7fa0 commit 706562f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/workers/repository/process/lookup/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export async function lookupUpdates(
const version = allVersioning.get(config.versioning);
const res: UpdateResult = { updates: [], warnings: [] } as any;

const isValid = version.isValid(currentValue);
const isValid = currentValue && version.isValid(currentValue);
if (!isValid) res.skipReason = 'invalid-value';

if (isValid) {
Expand Down

0 comments on commit 706562f

Please sign in to comment.