Skip to content

best way to save what you love

api/core: rename req and next args to indicate that they're unused

wukko3317726afe3f
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");
})