Skip to content

Commit

Permalink
refactor(index): remove unused catch bindings (#77)
Browse files Browse the repository at this point in the history
Signed-off-by: Frazer Smith <frazer.dev@icloud.com>
  • Loading branch information
Fdawgs authored Dec 30, 2024
1 parent 79bdf2d commit 911e840
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function Tokens (options) {
try {
crypto
.createHash(algorithm)
} catch (err) {
} catch {
throw new TypeError('option algorithm must be a supported hash-algorithm')
}

Expand Down Expand Up @@ -77,7 +77,7 @@ function Tokens (options) {
try {
// validate if the hmacKey is a valid format
hashingStrategy(algorithm, hmacKey)
} catch (err) {
} catch {
throw new TypeError('option hmacKey must be a supported hmac key')
}
}
Expand Down

0 comments on commit 911e840

Please sign in to comment.