mirror of
https://github.com/umap-project/umap.git
synced 2025-04-28 19:42:36 +02:00
chore: modern JS
This commit is contained in:
parent
6b4b6ce53b
commit
a8468cb4fa
1 changed files with 1 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue