api/core: rename err argument to indicate that it's unused
This commit is contained in:
@@ -292,7 +292,7 @@ export const runAPI = (express, app, __dirname) => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
// handle all express errors
|
// handle all express errors
|
||||||
app.use((err, req, res, next) => {
|
app.use((_, req, res, next) => {
|
||||||
return fail(res, "error.api.generic");
|
return fail(res, "error.api.generic");
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user