Skip to content

Commit

Permalink
refactor: remove unnecessary variable (#401)
Browse files Browse the repository at this point in the history
  • Loading branch information
underfin authored and yyx990803 committed Oct 28, 2019
1 parent 6a61082 commit 8454e7e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/runtime-core/src/component.ts
Expand Up @@ -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) {
Expand Down

0 comments on commit 8454e7e

Please sign in to comment.