Skip to content

Commit 84b6f8b

Browse files
committed
actually we don't need that
1 parent 353d697 commit 84b6f8b

File tree

1 file changed

+1
-3
lines changed
  • packages/svelte/src/compiler/phases/2-analyze/css

1 file changed

+1
-3
lines changed

packages/svelte/src/compiler/phases/2-analyze/css/Selector.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,7 @@ export default class Selector {
9898
*/
9999
apply(node) {
100100
for (const complex_selector of this.local_selector_list) {
101-
if (complex_selector.length === 0) {
102-
this.used = true;
103-
} else if (apply_selector(complex_selector.slice(), node, this.stylesheet)) {
101+
if (apply_selector(complex_selector.slice(), node, this.stylesheet)) {
104102
this.used = true;
105103
}
106104
}

0 commit comments

Comments
 (0)