chore: use Boolean to filter TemplateChildNode (#569)
This commit is contained in:
parent
a7ef59c4c3
commit
dee5480317
@ -233,7 +233,7 @@ function parseChildren(
|
||||
}
|
||||
}
|
||||
|
||||
return removedWhitespace ? nodes.filter(node => node !== null) : nodes
|
||||
return removedWhitespace ? nodes.filter(Boolean) : nodes
|
||||
}
|
||||
|
||||
function pushNode(nodes: TemplateChildNode[], node: TemplateChildNode): void {
|
||||
|
Loading…
Reference in New Issue
Block a user