Add eslint rule: max line length (80)
Signed-off-by: Fred Boniface <fred@fjla.uk>
This commit is contained in:
@@ -15,7 +15,8 @@ module.exports = async function authCheck(req, res, next) {
|
||||
if (!result) {
|
||||
const err = new Error('Unauthorised');
|
||||
err.status = 401;
|
||||
log.out('authMiddlewares: Authentication attempted with incorrect key', 'warn');
|
||||
log.out('authMiddlewares: Authentication attempted with incorrect key',
|
||||
'warn');
|
||||
return next(err);
|
||||
} else {
|
||||
log.out('authMiddlewares: User authenticated', 'dbug');
|
||||
|
||||
Reference in New Issue
Block a user