2
0
mirror of https://github.com/tenrok/vue-meta.git synced 2026-06-22 07:00:33 +03:00

refactor: prefer forEach

This commit is contained in:
pimlie
2019-03-08 14:32:42 +01:00
committed by Alexander Lichter
parent b7ee0409ea
commit 4dafffea4e
+1 -3
View File
@@ -48,9 +48,7 @@ export default function getMetaInfo({ keyName, tagIDKeyName, metaTemplateKeyName
if (index === 0) { if (index === 0) {
ensureIsArray(info, disableKey) ensureIsArray(info, disableKey)
} else if (index === 1) { } else if (index === 1) {
for (const key in info[disableKey]) { info[disableKey].forEach(key => ensureIsArray(info[disableKey], key))
ensureIsArray(info[disableKey], key)
}
} }
} }