Skip to content

Commit e12fe87

Browse files
authored
chore: simplify assignment expression (#15177)
1 parent 5b30fbf commit e12fe87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/svelte/src/internal/client/render.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export function set_text(text, value) {
5555
if (str !== (text.__t ??= text.nodeValue)) {
5656
// @ts-expect-error
5757
text.__t = str;
58-
text.nodeValue = str == null ? '' : str + '';
58+
text.nodeValue = str + '';
5959
}
6060
}
6161

0 commit comments

Comments
 (0)