From 8b327111e1400a30904b03691baac307102611df Mon Sep 17 00:00:00 2001 From: fatchan Date: Tue, 28 May 2019 04:11:36 +0000 Subject: [PATCH] shorten line --- helpers/captchaverify.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/helpers/captchaverify.js b/helpers/captchaverify.js index 21ee4de9..ec939409 100644 --- a/helpers/captchaverify.js +++ b/helpers/captchaverify.js @@ -8,7 +8,9 @@ const Captchas = require(__dirname+'/../db/captchas.js') module.exports = async (req, res, next) => { //skip captcha if disabled on board for posts only - if (res.locals.board && req.path === `/board/${res.locals.board._id}/post` && !res.locals.board.settings.captcha) { + if (res.locals.board + && req.path === `/board/${res.locals.board._id}/post` + && !res.locals.board.settings.captcha) { return next(); }