Skip to content

Commit c488e5c

Browse files
committed
Simplify code
1 parent 9efb473 commit c488e5c

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

index.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -113,14 +113,11 @@ module.exports = (opts = {}) => {
113113
return {
114114
AtRuleExit: {
115115
media(atrule) {
116-
if (
117-
!atrule.params.includes('dark') &&
118-
!atrule.params.includes('light')
119-
) {
116+
let params = atrule.params
117+
if (!params.includes('dark') && !params.includes('light')) {
120118
return
121119
}
122120

123-
let params = atrule.params
124121
let fixedSelector = params.includes('dark') ? dark : light
125122
let nodeSelector = `:not(${params.includes('dark') ? light : dark})`
126123

0 commit comments

Comments
 (0)