Browse Source

switched to _.isEmpty check

pull/899/head
Stephen Hess 8 years ago
parent
commit
a2589cfeb7
  1. 2
      controller/predicates/is_coarse_reverse.js

2
controller/predicates/is_coarse_reverse.js

@ -5,5 +5,5 @@ const non_coarse_layers = ['address', 'street', 'venue'];
module.exports = (req, res) => {
// returns true if layers is undefined, empty, or contains 'address', 'street', or 'venue'
return !_.isEmpty(req.clean.layers) &&
_.intersection(req.clean.layers, non_coarse_layers).length === 0;
_.isEmpty(_.intersection(req.clean.layers, non_coarse_layers));
};

Loading…
Cancel
Save