Skip to content

Commit

Permalink
Remove unnecessary check
Browse files Browse the repository at this point in the history
  • Loading branch information
TrySound committed Sep 12, 2021
1 parent 9a886e4 commit 6c9de2b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions plugins/prefixIds.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,8 @@ exports.fn = (_root, params, info) => {
csstree.walk(cssAst, (node) => {
// #ID, .class selectors
if (
((prefixIds && node.type === 'IdSelector') ||
(prefixClassNames && node.type === 'ClassSelector')) &&
node.name
(prefixIds && node.type === 'IdSelector') ||
(prefixClassNames && node.type === 'ClassSelector')
) {
node.name = prefixId(prefix, node.name);
return;
Expand Down

0 comments on commit 6c9de2b

Please sign in to comment.