chore: modern JS

This commit is contained in:
David Larlet 2024-07-22 09:58:17 -04:00 committed by GitHub
parent 6b4b6ce53b
commit a8468cb4fa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -240,8 +240,7 @@ export function greedyTemplate(str, data, ignore) {
if (staticFallback !== undefined) {
vars.push(staticFallback)
}
for (let i = 0; i < vars.length; i++) {
path = vars[i]
for (const path of vars) {
if (path.startsWith('"') && path.endsWith('"')) {
value = path.substring(1, path.length - 1) // static default value.
} else {