Skip to content
This repository was archived by the owner on Jul 10, 2019. It is now read-only.

Commit 9166aad

Browse files
committed
chore(nuxt.config.ts): change statement from for loop to for of
1 parent a44943e commit 9166aad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nuxt.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@ module.exports = {
133133
extendRoutes(routes: any, resolve: any) {
134134
// https://ja.nuxtjs.org/api/configuration-router/#extendroutes
135135
if (routers && routers.length > 0) {
136-
for (let i = 0, len = routers.length; i < len; i++) {
137-
routes.push(routers[i](resolve))
136+
for (const fn of routers) {
137+
routes.push(fn(resolve))
138138
}
139139
}
140140
}

0 commit comments

Comments
 (0)