refactor: remove unnecessary variable (#401)
This commit is contained in:
parent
6a61082c6c
commit
8454e7e004
@ -246,8 +246,7 @@ export function setupStatefulComponent(
|
|||||||
if (Component.components) {
|
if (Component.components) {
|
||||||
const names = Object.keys(Component.components)
|
const names = Object.keys(Component.components)
|
||||||
for (let i = 0; i < names.length; i++) {
|
for (let i = 0; i < names.length; i++) {
|
||||||
const name = names[i]
|
validateComponentName(names[i], instance.appContext.config)
|
||||||
validateComponentName(name, instance.appContext.config)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (Component.directives) {
|
if (Component.directives) {
|
||||||
|
Loading…
Reference in New Issue
Block a user