Skip to content

Commit 8454e7e

Browse files
underfinyyx990803
authored andcommitted
refactor: remove unnecessary variable (vuejs#401)
1 parent 6a61082 commit 8454e7e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/runtime-core/src/component.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -246,8 +246,7 @@ export function setupStatefulComponent(
246246
if (Component.components) {
247247
const names = Object.keys(Component.components)
248248
for (let i = 0; i < names.length; i++) {
249-
const name = names[i]
250-
validateComponentName(name, instance.appContext.config)
249+
validateComponentName(names[i], instance.appContext.config)
251250
}
252251
}
253252
if (Component.directives) {

0 commit comments

Comments
 (0)