Skip to content

Commit c06b252

Browse files
committed
YALF
1 parent 85f84ca commit c06b252

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/svelte/src/compiler/phases/3-transform/client/visitors/VariableDeclaration.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,9 @@ export function VariableDeclaration(node, context) {
117117

118118
const args = /** @type {CallExpression} */ (init).arguments;
119119
const value =
120-
args.length === 0 ? b.unary('void', b.literal(0)) : /** @type {Expression} */ (context.visit(args[0]));
120+
args.length === 0
121+
? b.unary('void', b.literal(0))
122+
: /** @type {Expression} */ (context.visit(args[0]));
121123

122124
if (rune === '$state' || rune === '$state.raw') {
123125
/**

0 commit comments

Comments
 (0)