Skip to content

Commit

Permalink
fix: check if currentValue is a string (#13044)
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins committed Dec 10, 2021
1 parent 7e873ca commit bcea325
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/workers/repository/process/lookup/index.ts
Expand Up @@ -64,7 +64,7 @@ export async function lookupUpdates(
res.skipReason = SkipReason.InvalidConfig;
return res;
}
const isValid = currentValue && versioning.isValid(currentValue);
const isValid = is.string(currentValue) && versioning.isValid(currentValue);
if (unconstrainedValue || isValid) {
if (
!updatePinnedDependencies &&
Expand Down

0 comments on commit bcea325

Please sign in to comment.