Skip to content

Commit

Permalink
fix(linting): no-unused-vars
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys committed May 3, 2024
1 parent 971db81 commit a24439f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ const pickManifest = (packument, wanted, opts) => {
const allEntries = Object.entries(versions)
.concat(Object.entries(staged))
.concat(Object.entries(restricted))
.filter(([ver, mani]) => isBefore(verTimes, ver, time))
.filter(([ver]) => isBefore(verTimes, ver, time))

if (!allEntries.length) {
throw Object.assign(new Error(`No versions available for ${name}`), {
Expand All @@ -148,7 +148,7 @@ const pickManifest = (packument, wanted, opts) => {
}

const sortSemverOpt = { loose: true }
const entries = allEntries.filter(([ver, mani]) =>
const entries = allEntries.filter(([ver]) =>
semver.satisfies(ver, range, { loose: true }))
.sort((a, b) => {
const [vera, mania] = a
Expand Down

0 comments on commit a24439f

Please sign in to comment.