Skip to content

Commit

Permalink
Use more readable version of blacklist checker
Browse files Browse the repository at this point in the history
  • Loading branch information
Tony Ko committed Nov 5, 2018
1 parent 485aa8c commit 50808a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@
if (item[key]) {
var values = Array.isArray(item[key]) ? item[key] : [item[key]];
values.forEach(function (value) {
if(params.blacklist && params.blacklist.indexOf(value) > -1){
} else {
var proceed = !(params.blacklist && params.blacklist.indexOf(value) > -1)
if(proceed){
rslt[key][value] = '';
}
});
Expand Down

0 comments on commit 50808a8

Please sign in to comment.