Skip to content

Commit 253807a

Browse files
committed
simplify condition
1 parent 81d2aad commit 253807a

File tree

1 file changed

+1
-1
lines changed
  • packages/svelte/src/compiler/phases/3-transform/client/visitors/shared

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ export function build_template_chunk(
101101

102102
if (node.type === 'Text') {
103103
quasi.value.cooked += node.data;
104-
} else if (node.type === 'ExpressionTag' && node.expression.type === 'Literal') {
104+
} else if (node.expression.type === 'Literal') {
105105
if (node.expression.value != null) {
106106
quasi.value.cooked += node.expression.value + '';
107107
}

0 commit comments

Comments
 (0)