Browse Source

Remove empty array check that will always fail

Even splitting on an empty string returns an array of one element
pull/273/head
Julian Simioni 9 years ago
parent
commit
1b512fc643
  1. 5
      sanitiser/_ids.js

5
sanitiser/_ids.js

@ -33,11 +33,6 @@ function sanitize( raw, clean ){
// split string into array of values // split string into array of values
var rawIds = rawIdsString.split(','); var rawIds = rawIdsString.split(',');
// no ids provided
if( !rawIds.length ){
messages.errors.push( errorMessage('ids') );
}
// deduplicate // deduplicate
rawIds = _.unique(rawIds); rawIds = _.unique(rawIds);

Loading…
Cancel
Save