Skip to content

Commit 1631d76

Browse files
committed
fix(linting): no-unused-vars
1 parent b81c6ed commit 1631d76

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ class Calculator {
107107

108108
const timeEnd = time.start(`metavuln:packument:${name}`)
109109
const p = pacote.packument(name, { ...this[_options] })
110-
.catch((er) => {
110+
.catch(() => {
111111
// presumably not something from the registry.
112112
// an empty packument will have an effective range of *
113113
return {

test/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const requireInject = require('require-inject')
33
const packuments = require('./fixtures/packuments/index.js')
44
const advisories = require('./fixtures/advisories/index.js')
55
const pacote = {
6-
packument: async (name, options) => {
6+
packument: async (name) => {
77
if (packuments[name]) {
88
return packuments[name]
99
}

0 commit comments

Comments
 (0)