From 2e92f15a918adbd3904cb33e4c4715df5a544f54 Mon Sep 17 00:00:00 2001 From: Julian Simioni Date: Sun, 11 Mar 2018 22:51:44 -0400 Subject: [PATCH] Whitespace --- middleware/sizeCalculator.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/middleware/sizeCalculator.js b/middleware/sizeCalculator.js index 69409e45..f8c6936c 100644 --- a/middleware/sizeCalculator.js +++ b/middleware/sizeCalculator.js @@ -8,15 +8,15 @@ var MIN_QUERY_SIZE = 20; * Utility for calculating query result size * incorporating padding for dedupe process */ -function setup() { - return function setQuerySize(req, res, next) { - if (_.isUndefined(req.clean) || _.isUndefined(req.clean.size)) { - return next(); - } +function setup(min_size) { + return function setQuerySize(req, res, next) { + if (_.isUndefined(req.clean) || _.isUndefined(req.clean.size)) { + return next(); + } - req.clean.querySize = calculateSize(req.clean.size); - next(); - }; + req.clean.querySize = calculateSize(req.clean.size, min_size); + next(); + }; } /**