Skip to content

Commit 4fcc7d1

Browse files
committed
simplify
1 parent 58052bf commit 4fcc7d1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/svelte/src/compiler/phases/2-analyze/visitors/SnippetBlock.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ export function SnippetBlock(node, context) {
2323

2424
context.next({ ...context.state, parent_element: null });
2525

26-
const local_scope = context.state.scope;
2726
const can_hoist =
2827
context.path.length === 1 &&
2928
context.path[0].type === 'Fragment' &&
30-
can_hoist_snippet(local_scope, context.state.scopes);
29+
can_hoist_snippet(context.state.scope, context.state.scopes);
30+
3131
const undefined_exports = context.state.analysis.undefined_exports;
3232
const name = node.expression.name;
3333

0 commit comments

Comments
 (0)