Skip to content

Commit

Permalink
chore: simplify assignment expression (#15177)
Browse files Browse the repository at this point in the history
  • Loading branch information
pgliang001 authored Feb 3, 2025
1 parent 5b30fbf commit e12fe87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/svelte/src/internal/client/render.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export function set_text(text, value) {
if (str !== (text.__t ??= text.nodeValue)) {
// @ts-expect-error
text.__t = str;
text.nodeValue = str == null ? '' : str + '';
text.nodeValue = str + '';
}
}

Expand Down

0 comments on commit e12fe87

Please sign in to comment.