Skip to content

Commit

Permalink
Fix linter warning
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Oct 29, 2024
1 parent a9a91e7 commit 4ac2a59
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -337,15 +337,6 @@ module.exports = (opts = {}) => {

rule.each(child => {
switch (child.type) {
case 'rule':
[after, declarations] = pickAndClearDeclarations(rule.selector, declarations, after)

copyDeclarations = true
unwrapped = true
child.selectors = mergeSelectors(rule, child)
after = breakOut(child, after)

break
case 'atrule':
[after, declarations] = pickAndClearDeclarations(rule.selector, declarations, after)

Expand Down Expand Up @@ -373,6 +364,15 @@ module.exports = (opts = {}) => {
declarations.push(child)
}

break
case 'rule':
[after, declarations] = pickAndClearDeclarations(rule.selector, declarations, after)

copyDeclarations = true
unwrapped = true
child.selectors = mergeSelectors(rule, child)
after = breakOut(child, after)

break
}
})
Expand Down

0 comments on commit 4ac2a59

Please sign in to comment.