Skip to content
This repository was archived by the owner on Apr 6, 2021. It is now read-only.

Commit 52e9976

Browse files
thecrypticaceRobinMalfait
authored andcommitted
Use destructing when looping over candidates
Co-authored-by: Robin Malfait <malfait.robin@gmail.com>
1 parent 53092ea commit 52e9976

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/lib/expandApplyAtRules.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,10 +129,7 @@ function expandApplyAtRules(context) {
129129
for (const [parent, candidates] of perParentApplies) {
130130
let siblings = []
131131

132-
for (let candidate of candidates) {
133-
let applyCandidate = candidate[0]
134-
let important = candidate[1]
135-
let rules = candidate[2]
132+
for (let [applyCandidate, important, rules] of candidates) {
136133
for (let [meta, node] of rules) {
137134
let root = postcss.root({ nodes: [node.clone()] })
138135
let canRewriteSelector =

0 commit comments

Comments
 (0)