Browse Source

Whitespace

pull/1097/head
Julian Simioni 7 years ago
parent
commit
2e92f15a91
No known key found for this signature in database
GPG Key ID: B9EEB0C6EE0910A1
  1. 4
      middleware/sizeCalculator.js

4
middleware/sizeCalculator.js

@ -8,13 +8,13 @@ var MIN_QUERY_SIZE = 20;
* Utility for calculating query result size
* incorporating padding for dedupe process
*/
function setup() {
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);
req.clean.querySize = calculateSize(req.clean.size, min_size);
next();
};
}

Loading…
Cancel
Save