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 02de832 commit 27688b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/fixer.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ module.exports = {
}
},

fixDependencies: function (data, strict) {
fixDependencies: function (data) {
objectifyDeps(data, this.warn)
addOptionalDepsToDeps(data, this.warn)
this.fixBundleDependenciesField(data)
Expand Down Expand Up @@ -415,7 +415,7 @@ function parsePerson (person) {
return obj
}

function addOptionalDepsToDeps (data, warn) {
function addOptionalDepsToDeps (data) {
var o = data.optionalDependencies
if (!o) {
return
Expand Down
2 changes: 1 addition & 1 deletion lib/normalize.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ function normalize (data, warn, strict) {
strict = false
}
if (!warn || data.private) {
warn = function (msg) { /* noop */ }
warn = function () { /* noop */ }
}

if (data.scripts &&
Expand Down

0 comments on commit 27688b4

Please sign in to comment.