chore: simplify assignment expression (#15177)

pull/15172/head
pgliang001 7 months ago committed by GitHub
parent 5b30fbfb0b
commit e12fe8795c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -55,7 +55,7 @@ export function set_text(text, value) {
if (str !== (text.__t ??= text.nodeValue)) { if (str !== (text.__t ??= text.nodeValue)) {
// @ts-expect-error // @ts-expect-error
text.__t = str; text.__t = str;
text.nodeValue = str == null ? '' : str + ''; text.nodeValue = str + '';
} }
} }

Loading…
Cancel
Save