Skip to content

Commit

Permalink
Update is-fix-available.cjs
Browse files Browse the repository at this point in the history
  • Loading branch information
BradyMitch authored Jul 12, 2024
1 parent 5786e4a commit fb6a48c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/helpers/npm-audit/is-fix-available.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@ const semver = require('semver');
*/
const isFixAvailable = (latestVersion, vulnerableRange, childDepVersion) => {
// Check if the latest version is within the vulnerable range
if (semver.satisfies(latestVersion, vulnerableRange)) {
return false;
}
if (semver.satisfies(latestVersion, vulnerableRange)) return false;

// Check if the child dependency version is outside the vulnerable range
const resolvedVersion = semver.maxSatisfying(
Expand Down

0 comments on commit fb6a48c

Please sign in to comment.