chore: remove redundant variable declaration (#5053)
This commit is contained in:
parent
29beda7c6f
commit
095fe269cb
@ -363,9 +363,6 @@ export function injectProp(
|
|||||||
context: TransformContext
|
context: TransformContext
|
||||||
) {
|
) {
|
||||||
let propsWithInjection: ObjectExpression | CallExpression | undefined
|
let propsWithInjection: ObjectExpression | CallExpression | undefined
|
||||||
const originalProps =
|
|
||||||
node.type === NodeTypes.VNODE_CALL ? node.props : node.arguments[2]
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 1. mergeProps(...)
|
* 1. mergeProps(...)
|
||||||
* 2. toHandlers(...)
|
* 2. toHandlers(...)
|
||||||
@ -374,7 +371,7 @@ export function injectProp(
|
|||||||
*
|
*
|
||||||
* we need to get the real props before normalization
|
* 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 callPath: CallExpression[] = []
|
||||||
let parentCall: CallExpression | undefined
|
let parentCall: CallExpression | undefined
|
||||||
if (
|
if (
|
||||||
|
Loading…
Reference in New Issue
Block a user