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 4, 2024
1 parent b81c6ed commit 1631d76
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class Calculator {

const timeEnd = time.start(`metavuln:packument:${name}`)
const p = pacote.packument(name, { ...this[_options] })
.catch((er) => {
.catch(() => {
// presumably not something from the registry.
// an empty packument will have an effective range of *
return {
Expand Down
2 changes: 1 addition & 1 deletion test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const requireInject = require('require-inject')
const packuments = require('./fixtures/packuments/index.js')
const advisories = require('./fixtures/advisories/index.js')
const pacote = {
packument: async (name, options) => {
packument: async (name) => {
if (packuments[name]) {
return packuments[name]
}
Expand Down

0 comments on commit 1631d76

Please sign in to comment.