From c5bf66cf5ec0805d4ee04715d9d78419503e04fa Mon Sep 17 00:00:00 2001 From: Jesse Skinner Date: Wed, 16 Oct 2019 22:20:57 -0400 Subject: [PATCH] Change let to const in for/of loops --- src/compiler/compile/css/Selector.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/compiler/compile/css/Selector.ts b/src/compiler/compile/css/Selector.ts index 90e6b77295..3c4cb52d56 100644 --- a/src/compiler/compile/css/Selector.ts +++ b/src/compiler/compile/css/Selector.ts @@ -148,12 +148,12 @@ function apply_selector(blocks: Block[], node: CssNode, stack: CssNode[], to_enc if (block.combinator) { if (block.combinator.type === 'WhiteSpace') { - for (let ancestor_block of blocks) { + for (const ancestor_block of blocks) { if (ancestor_block.global) { continue; } - for (let stack_node of stack) { + for (const stack_node of stack) { if (block_might_apply_to_node(ancestor_block, stack_node)) { to_encapsulate.push({ node: stack_node, block: ancestor_block }); }