From 0aae3fe7f0af8a08e07158b48bc78d5fb5c04a5d Mon Sep 17 00:00:00 2001 From: wukko Date: Mon, 9 Sep 2024 19:41:44 +0600 Subject: [PATCH] api/core: rename err argument to indicate that it's unused --- api/src/core/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/core/api.js b/api/src/core/api.js index acfd26cb..3e38cc71 100644 --- a/api/src/core/api.js +++ b/api/src/core/api.js @@ -292,7 +292,7 @@ export const runAPI = (express, app, __dirname) => { }) // handle all express errors - app.use((err, req, res, next) => { + app.use((_, req, res, next) => { return fail(res, "error.api.generic"); })