Skip to content

Commit

Permalink
Code style
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed Feb 17, 2020
1 parent fdc1e20 commit 5321752
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions rules/utils/not-dom-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,10 @@ const isNotDomNode = node => {
(node.type === 'Identifier' && node.name === 'undefined');
};

const notDomNodeSelector = node => {
return [
...impossibleTypes.map(type => `[${node}.type!="${type}"]`),
`:not([${node}.type="Identifier"][${node}.name="undefined"])`
].join('');
};
const notDomNodeSelector = node => [
...impossibleTypes.map(type => `[${node}.type!="${type}"]`),
`:not([${node}.type="Identifier"][${node}.name="undefined"])`
].join('');

module.exports = {
isNotDomNode,
Expand Down

0 comments on commit 5321752

Please sign in to comment.