Skip to content

Commit 7c0fda4

Browse files
committed
tweak
1 parent b73a228 commit 7c0fda4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,12 +42,11 @@ export function SvelteBoundary(node, context) {
4242
);
4343
const pending = b.call(callee, b.id('$$renderer'));
4444
const block = /** @type {BlockStatement} */ (context.visit(node.fragment));
45-
const statement = block;
4645
context.state.template.push(
4746
b.if(
4847
callee,
4948
b.block(build_template([block_open_else, b.stmt(pending), block_close])),
50-
b.block(build_template([block_open, statement, block_close]))
49+
b.block(build_template([block_open, block, block_close]))
5150
)
5251
);
5352
} else {
@@ -67,7 +66,6 @@ export function SvelteBoundary(node, context) {
6766
}
6867
} else {
6968
const block = /** @type {BlockStatement} */ (context.visit(node.fragment));
70-
const statement = block;
71-
context.state.template.push(block_open, statement, block_close);
69+
context.state.template.push(block_open, block, block_close);
7270
}
7371
}

0 commit comments

Comments
 (0)