Skip to content

Commit

Permalink
fix(lookup): return early if currentValue is in list of versions (#27791
Browse files Browse the repository at this point in the history
)
  • Loading branch information
rarkins authored Mar 10, 2024
1 parent 0cc759c commit ae9f79f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/workers/repository/process/lookup/current.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ export function getCurrentVersion(
return null;
}
logger.trace(`currentValue ${currentValue} is range`);
if (allVersions.includes(currentValue)) {
return currentValue;
}
let useVersions = allVersions.filter((v) =>
versioning.matches(v, currentValue),
);
Expand Down

0 comments on commit ae9f79f

Please sign in to comment.