From 795ecc40485a3941db45dd1df07fb8ba5586f02d Mon Sep 17 00:00:00 2001 From: Vadim Kruglov Date: Mon, 20 May 2024 14:16:47 +0700 Subject: [PATCH] refactor(compiler-core): remove redundant destruction --- packages/compiler-core/src/transforms/vBind.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/compiler-core/src/transforms/vBind.ts b/packages/compiler-core/src/transforms/vBind.ts index 7cef9ed64e2..cec444a5a1a 100644 --- a/packages/compiler-core/src/transforms/vBind.ts +++ b/packages/compiler-core/src/transforms/vBind.ts @@ -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(