chore: drop redundant String() coercion in to_style

After the new normalization step, `value` at the final return is always
either null/undefined or a string, so `String(value)` is doing nothing.
pull/18176/head
Mathias Picker 4 months ago
parent b6b6d03869
commit b87eb5a893

@ -263,5 +263,5 @@ export function to_style(value, styles) {
// Empty results drop the attribute entirely so that client and SSR agree
// (the directive path above already returns `null` for empty output).
return value == null || value === '' ? null : String(value);
return value == null || value === '' ? null : value;
}

Loading…
Cancel
Save