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. 16
      middleware/sizeCalculator.js

16
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();
};
}
/**

Loading…
Cancel
Save