Skip to content

Commit

Permalink
More compact code
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Apr 28, 2018
1 parent 18be4fe commit f89be26
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/processor.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,8 +348,8 @@ class Processor {
const prev = node.prev();
if (prev && prev.type === 'comment' && IGNORE_NEXT.test(prev.text)) {
node._autoprefixerDisabled = true;
node._autoprefixerOnlySelfDisabled = true;
return node._autoprefixerDisabled;
node._autoprefixerSelfDisabled = true;
return true;
}

let value = null;
Expand Down Expand Up @@ -378,7 +378,7 @@ class Processor {
if (!node.nodes || value === null) {
if (node.parent) {
const isParentDisabled = this.disabled(node.parent, result);
if (node.parent._autoprefixerOnlySelfDisabled === true) {
if (node.parent._autoprefixerSelfDisabled === true) {
value = false;
} else {
value = isParentDisabled;
Expand All @@ -388,7 +388,7 @@ class Processor {
}
}
node._autoprefixerDisabled = value;
return node._autoprefixerDisabled;
return value;
}

/**
Expand Down

0 comments on commit f89be26

Please sign in to comment.