Skip to content

Commit

Permalink
refactor(signer): remove unused catch binding (#315)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs authored Jan 4, 2025
1 parent 639f778 commit a8023cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion signer.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function validateAlgorithm (algorithm) {
// validate that the algorithm is supported by the node runtime
try {
crypto.createHmac(algorithm, crypto.randomBytes(16))
} catch (e) {
} catch {
throw new TypeError(`Algorithm ${algorithm} not supported.`)
}
}
Expand Down

0 comments on commit a8023cd

Please sign in to comment.