Merge pull request #2784 from clarkdo/refactor

refactor: remove unnecessary return null in style attribute
pull/2785/head
Rich Harris 6 years ago committed by GitHub
commit 45550adc43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -93,7 +93,6 @@ function optimize_style(value: Node[]) {
}
const result = get_style_value(chunks);
if (!result) return null;
props.push({ key, value: result.value });
chunks = result.chunks;

Loading…
Cancel
Save