refactor: remove unnecessary variable (#401)

This commit is contained in:
likui 2019-10-28 22:13:26 +08:00 committed by Evan You
parent 6a61082c6c
commit 8454e7e004

View File

@ -246,8 +246,7 @@ export function setupStatefulComponent(
if (Component.components) {
const names = Object.keys(Component.components)
for (let i = 0; i < names.length; i++) {
const name = names[i]
validateComponentName(name, instance.appContext.config)
validateComponentName(names[i], instance.appContext.config)
}
}
if (Component.directives) {