Skip to content

Commit

Permalink
refactor: prefix unused params with underscores (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs authored Dec 30, 2024
1 parent a6b7d80 commit 1e1011e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion benchmarks/ignore.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ suite
})
.run({ async: true })

internals.reviver = function (key, value) {
internals.reviver = function (_key, value) {
return value
}
6 changes: 3 additions & 3 deletions test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ test('parse', t => {
})

t.test('parses object string (reviver)', t => {
const reviver = (key, value) => {
const reviver = (_key, value) => {
return typeof value === 'number' ? value + 1 : value
}

Expand All @@ -58,7 +58,7 @@ test('parse', t => {

t.test('protoAction', t => {
t.test('sanitizes object string (reviver, options)', t => {
const reviver = (key, value) => {
const reviver = (_key, value) => {
return typeof value === 'number' ? value + 1 : value
}

Expand Down Expand Up @@ -158,7 +158,7 @@ test('parse', t => {

t.test('constructorAction', t => {
t.test('sanitizes object string (reviver, options)', t => {
const reviver = (key, value) => {
const reviver = (_key, value) => {
return typeof value === 'number' ? value + 1 : value
}

Expand Down

0 comments on commit 1e1011e

Please sign in to comment.