Skip to content

Commit

Permalink
refactor(compiler-core): remove redundant destruction
Browse files Browse the repository at this point in the history
  • Loading branch information
Vadim Kruglov committed May 20, 2024
1 parent 85827ac commit 795ecc4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion packages/compiler-core/src/transforms/vBind.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ export const transformBind: DirectiveTransform = (dir, _node, context) => {

// same-name shorthand - :arg is expanded to :arg="arg"
if (!exp) {
const { loc } = dir
if (arg.type !== NodeTypes.SIMPLE_EXPRESSION || !arg.isStatic) {
// only simple expression is allowed for same-name shorthand
context.onError(
Expand Down

0 comments on commit 795ecc4

Please sign in to comment.