Skip to content

Commit 095fe26

Browse files
authored
chore: remove redundant variable declaration (vuejs#5053)
1 parent 29beda7 commit 095fe26

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

packages/compiler-core/src/utils.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -363,9 +363,6 @@ export function injectProp(
363363
context: TransformContext
364364
) {
365365
let propsWithInjection: ObjectExpression | CallExpression | undefined
366-
const originalProps =
367-
node.type === NodeTypes.VNODE_CALL ? node.props : node.arguments[2]
368-
369366
/**
370367
* 1. mergeProps(...)
371368
* 2. toHandlers(...)
@@ -374,7 +371,7 @@ export function injectProp(
374371
*
375372
* we need to get the real props before normalization
376373
*/
377-
let props = originalProps
374+
let props = node.type === NodeTypes.VNODE_CALL ? node.props : node.arguments[2]
378375
let callPath: CallExpression[] = []
379376
let parentCall: CallExpression | undefined
380377
if (

0 commit comments

Comments
 (0)