From 4ac2a59bd35196c2057df790f3490a0dff03f2a2 Mon Sep 17 00:00:00 2001 From: Andrey Sitnik Date: Tue, 29 Oct 2024 22:34:29 +0000 Subject: [PATCH] Fix linter warning --- index.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/index.js b/index.js index 89489b3..9ba04eb 100644 --- a/index.js +++ b/index.js @@ -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) @@ -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 } })