From ef3ffddec7c642c63ef68a8005078ec4d7462efe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Garc=C3=ADa=20Aubert?= Date: Thu, 1 Mar 2018 18:49:44 +0100 Subject: [PATCH] Cosmetic changes --- lib/cartodb/middleware/allow-query-params.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/cartodb/middleware/allow-query-params.js b/lib/cartodb/middleware/allow-query-params.js index 7ec31d74..cf90e69b 100644 --- a/lib/cartodb/middleware/allow-query-params.js +++ b/lib/cartodb/middleware/allow-query-params.js @@ -1,8 +1,9 @@ -module.exports = function allowQueryParams(params) { +module.exports = function allowQueryParams (params) { if (!Array.isArray(params)) { throw new Error('allowQueryParams must receive an Array of params'); } - return function allowQueryParamsMiddleware(req, res, next) { + + return function allowQueryParamsMiddleware (req, res, next) { res.locals.allowedQueryParams = params; next(); };