Skip to content

Commit

Permalink
refactor(index): remove unused catch bindings
Browse files Browse the repository at this point in the history
Signed-off-by: Frazer Smith <[email protected]>
  • Loading branch information
Fdawgs authored Oct 19, 2024
1 parent 982f123 commit 0293faa
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 @@ -321,7 +321,7 @@ function buildRouteDecompress (fastify, params, routeOptions) {
if (params.onUnsupportedRequestEncoding) {
try {
errorPayload = params.onUnsupportedRequestEncoding(encoding, request)
} catch (ex) {
} catch {
errorPayload = undefined
}
}
Expand Down Expand Up @@ -448,7 +448,7 @@ function onDecompressError (request, params, encoding, error) {
if (params.onInvalidRequestPayload) {
try {
errorPayload = params.onInvalidRequestPayload(encoding, request, error)
} catch (ex) {
} catch {
errorPayload = undefined
}
}
Expand Down

0 comments on commit 0293faa

Please sign in to comment.