From 3317726afe3f6907259756a19dbe8e4438cf4680 Mon Sep 17 00:00:00 2001 From: wukko Date: Mon, 9 Sep 2024 19:44:40 +0600 Subject: [PATCH] api/core: rename req and next args to indicate that they're 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 3e38cc71..c96c1cf1 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((_, req, res, next) => { + app.use((_, __, res, ___) => { return fail(res, "error.api.generic"); })