Browse Source

Made is_request_sources_undefined more direct

pull/1165/head
Tyler Pedelose 7 years ago committed by Julian Simioni
parent
commit
85df33cdaa
No known key found for this signature in database
GPG Key ID: B9EEB0C6EE0910A1
  1. 5
      controller/predicates/is_request_sources_undefined.js

5
controller/predicates/is_request_sources_undefined.js

@ -5,9 +5,8 @@ const stackTraceLine = require('../../helper/stackTraceLine');
// returns true IFF there are no requested sources
module.exports = (req, res) => {
const is_request_sources_undefined = _.isEqual(
_.get(req, 'clean.sources', []),
[]
const is_request_sources_undefined = _.isEmpty(
_.get(req, 'clean.sources')
);
debugLog.push(req, () => ({
reply: is_request_sources_undefined,

Loading…
Cancel
Save