From 90f14f5e004e3d2b8617346f04f955d6b656731d Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Sat, 19 Oct 2024 11:53:47 +0100 Subject: [PATCH] refactor(index): remove unused catch bindings (#112) Signed-off-by: Frazer Smith --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index d60875b..1e2128a 100644 --- a/index.js +++ b/index.js @@ -46,7 +46,7 @@ function fastifyZipkin (fastify, opts, next) { // otherwise all the 404 requests // will not be catched by our hooks fastify.setNotFoundHandler(basic404) - } catch (err) { + } catch { // a custom error handler is already present }