From 8454e7e00450b3e429d98dbb19aec0ab03bf5f68 Mon Sep 17 00:00:00 2001 From: likui <2218301630@qq.com> Date: Mon, 28 Oct 2019 22:13:26 +0800 Subject: [PATCH] refactor: remove unnecessary variable (#401) --- packages/runtime-core/src/component.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/runtime-core/src/component.ts b/packages/runtime-core/src/component.ts index adaf9583..6125030b 100644 --- a/packages/runtime-core/src/component.ts +++ b/packages/runtime-core/src/component.ts @@ -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) {