From 0293faa1bb03a4448aeca7bcb105da96b6bf56d2 Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Sat, 19 Oct 2024 11:28:36 +0100 Subject: [PATCH] refactor(index): remove unused catch bindings Signed-off-by: Frazer Smith --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 609f57b..7ee62ca 100644 --- a/index.js +++ b/index.js @@ -321,7 +321,7 @@ function buildRouteDecompress (fastify, params, routeOptions) { if (params.onUnsupportedRequestEncoding) { try { errorPayload = params.onUnsupportedRequestEncoding(encoding, request) - } catch (ex) { + } catch { errorPayload = undefined } } @@ -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 } }