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 96d1795 commit f3773e2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/index.js
Expand Up @@ -535,7 +535,7 @@ function createIntegrity (opts) {
hashes.forEach(h => h.update(chunk, enc))
return this
},
digest: function (enc) {
digest: function () {
const integrity = algorithms.reduce((acc, algo) => {
const digest = hashes.shift().digest('base64')
const hash = new Hash(
Expand Down
2 changes: 1 addition & 1 deletion test/check.js
Expand Up @@ -111,7 +111,7 @@ test('checkData', t => {
`sha1-${hash(TEST_DATA, 'sha1')}`,
`sha512-${hash(TEST_DATA, 'sha512')}`,
].join(' '), {
pickAlgorithm: (a, b) => {
pickAlgorithm: () => {
return false
},
}),
Expand Down
2 changes: 1 addition & 1 deletion test/integrity.js
Expand Up @@ -122,7 +122,7 @@ test('pickAlgorithm()', t => {
)
t.equal(
sri.pickAlgorithm({
pickAlgorithm: (a, b) => 'sha384',
pickAlgorithm: () => 'sha384',
}),
'sha384',
'custom pickAlgorithm function accepted'
Expand Down

0 comments on commit f3773e2

Please sign in to comment.