Skip to content

Commit

Permalink
refactor(compat/compiler-core): improve conditional branching (#11185)
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-He95 authored Jun 22, 2024
1 parent a2e35d6 commit 914f064
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/compiler-core/src/compat/transformFilter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ export const transformFilter: NodeTransform = (node, context) => {
// filter rewrite is applied before expression transform so only
// simple expressions are possible at this stage
rewriteFilter(node.content, context)
}

if (node.type === NodeTypes.ELEMENT) {
} else if (node.type === NodeTypes.ELEMENT) {
node.props.forEach((prop: AttributeNode | DirectiveNode) => {
if (
prop.type === NodeTypes.DIRECTIVE &&
Expand Down

0 comments on commit 914f064

Please sign in to comment.