Skip to content

Commit

Permalink
♻️ Remove redundant code in isIncluded()
Browse files Browse the repository at this point in the history
  • Loading branch information
kghugo committed Aug 4, 2020
1 parent 5d431c7 commit 4e311ef
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions utilities/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,7 @@ const isIncluded = (decl, inclusionRules) => {
return true;
}

if (inclusionRules.some(unit => RegExp(unit).test(decl))) {
return true
}
return false
return inclusionRules.some(unit => RegExp(unit).test(decl));
}

const filterIdenticalValues = (sourceArray, arrayToCheckAgainst) => {
Expand Down

0 comments on commit 4e311ef

Please sign in to comment.