fix: Eslint offenses for JS files
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import logger from './logger.js';
|
||||
|
||||
// Do not remove `next` argument as the function signature will not fit for an error handler middleware
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
const errorHandler = (err, req, res, next) => {
|
||||
if (err.message === 'Not Found') {
|
||||
res.status(404).end();
|
||||
|
Reference in New Issue
Block a user