Skip to content

Commit

Permalink
use lodash for includes
Browse files Browse the repository at this point in the history
  • Loading branch information
rambleraptor committed Aug 26, 2019
1 parent 0e63041 commit a6d304e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rules/at-rule-conditional-no-parentheses/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function fix(atrule) {
atrule.params = _.uniq(groups).join(" ");
}

export default function(primary, _, context) {
export default function(primary, _unused, context) {
return (root, result) => {
const validOptions = utils.validateOptions(result, ruleName, {
actual: primary
Expand All @@ -41,7 +41,7 @@ export default function(primary, _, context) {

root.walkAtRules(atrule => {
// Check if this is a conditional rule.
if (!conditional_rules.includes(atrule.name)) {
if (!_.includes(conditional_rules, atrule.name)) {
return;
}

Expand Down

0 comments on commit a6d304e

Please sign in to comment.