From 1981d5a48d7ad1c2cc2559631f0e899f5113d1d9 Mon Sep 17 00:00:00 2001 From: Evan Hahn Date: Fri, 14 Jan 2022 07:17:46 -0600 Subject: [PATCH] Fix lint warning This fixes the following lint error: Line 36 exceeds the maximum line length of 100 max-len --- lib/conditional.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/conditional.js b/lib/conditional.js index ffc4e66..66ba278 100644 --- a/lib/conditional.js +++ b/lib/conditional.js @@ -33,7 +33,10 @@ const once = require('once'); */ module.exports = (condition, success, fail) => (req, res, next, ...rest) => { const nextOnce = once(next); - if (condition === true || (typeof condition === 'function' && condition(req, res, nextOnce, ...rest))) { + if ( + condition === true || + (typeof condition === 'function' && condition(req, res, nextOnce, ...rest)) + ) { return success(req, res, nextOnce, ...rest); } if (fail) {