Skip to content

Commit 68465a3

Browse files
committed
tidy up
1 parent 4a6ea8b commit 68465a3

File tree

1 file changed

+4
-4
lines changed
  • packages/svelte/src/compiler/phases/3-transform/server/visitors

1 file changed

+4
-4
lines changed

packages/svelte/src/compiler/phases/3-transform/server/visitors/SnippetBlock.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/** @import { ArrowFunctionExpression, BlockStatement, CallExpression, Statement } from 'estree' */
1+
/** @import { BlockStatement } from 'estree' */
22
/** @import { AST } from '#compiler' */
33
/** @import { ComponentContext } from '../types.js' */
44
import { dev } from '../../../../state.js';
@@ -18,12 +18,12 @@ export function SnippetBlock(node, context) {
1818
// @ts-expect-error - TODO remove this hack once $$render_inner for legacy bindings is gone
1919
fn.___snippet = true;
2020

21-
const push_to = node.metadata.can_hoist ? context.state.hoisted : context.state.init;
21+
const statements = node.metadata.can_hoist ? context.state.hoisted : context.state.init;
2222

2323
if (dev) {
2424
fn.body.body.unshift(b.stmt(b.call('$.validate_snippet_args', b.id('$$payload'))));
25-
push_to.push(b.stmt(b.call('$.prevent_snippet_stringification', fn.id)));
25+
statements.push(b.stmt(b.call('$.prevent_snippet_stringification', fn.id)));
2626
}
2727

28-
push_to.push(fn);
28+
statements.push(fn);
2929
}

0 commit comments

Comments
 (0)