Skip to content

Commit

Permalink
chore: remove redundant variable declaration (#5053)
Browse files Browse the repository at this point in the history
  • Loading branch information
sudongyuer committed Dec 6, 2021
1 parent 29beda7 commit 095fe26
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/compiler-core/src/utils.ts
Expand Up @@ -363,9 +363,6 @@ export function injectProp(
context: TransformContext
) {
let propsWithInjection: ObjectExpression | CallExpression | undefined
const originalProps =
node.type === NodeTypes.VNODE_CALL ? node.props : node.arguments[2]

/**
* 1. mergeProps(...)
* 2. toHandlers(...)
Expand All @@ -374,7 +371,7 @@ export function injectProp(
*
* we need to get the real props before normalization
*/
let props = originalProps
let props = node.type === NodeTypes.VNODE_CALL ? node.props : node.arguments[2]
let callPath: CallExpression[] = []
let parentCall: CallExpression | undefined
if (
Expand Down

0 comments on commit 095fe26

Please sign in to comment.