Skip to content

Commit 4f4ed2b

Browse files
committed
fix: eslint
1 parent ea84133 commit 4f4ed2b

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

backend/src/app.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -318,13 +318,12 @@ Redis.init()
318318
});
319319

320320
// ZAP Scan Proxy Disclosure Alert fix
321-
const blockedMethods = ['TRACE', 'TRACK', 'OPTIONS']
321+
const blockedMethods = ['TRACE', 'TRACK', 'OPTIONS'];
322322
app.use((req, res, next) => {
323-
if (blockedMethods.includes(req.method)) return res.sendStatus(HttpStatus.METHOD_NOT_ALLOWED)
324-
return next()
325-
})
326-
app.disable('x-powered-by')
327-
323+
if (blockedMethods.includes(req.method)) return res.sendStatus(HttpStatus.METHOD_NOT_ALLOWED);
324+
return next();
325+
});
326+
app.disable('x-powered-by');
328327
});
329328

330329
module.exports = app;

0 commit comments

Comments
 (0)