Skip to content

Commit

Permalink
refactor(compiler-core): remove redundant if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Vadim Kruglov committed May 14, 2024
1 parent 403e16c commit b3c2410
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions packages/compiler-core/src/transforms/vBind.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,10 @@ export const transformBind: DirectiveTransform = (dir, _node, context) => {

// same-name shorthand - :arg is expanded to :arg="arg"
if (!exp) {
if (!exp) {
const returned = transformBindShorthand(dir, context)
if (returned) return returned
const returned = transformBindShorthand(dir, context)
if (returned) return returned

exp = dir.exp!
}
exp = dir.exp!
}

if (arg.type !== NodeTypes.SIMPLE_EXPRESSION) {
Expand Down

0 comments on commit b3c2410

Please sign in to comment.