mirror of
https://github.com/umap-project/umap.git
synced 2025-04-29 03:42:37 +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) {
|
if (staticFallback !== undefined) {
|
||||||
vars.push(staticFallback)
|
vars.push(staticFallback)
|
||||||
}
|
}
|
||||||
for (let i = 0; i < vars.length; i++) {
|
for (const path of vars) {
|
||||||
path = vars[i]
|
|
||||||
if (path.startsWith('"') && path.endsWith('"')) {
|
if (path.startsWith('"') && path.endsWith('"')) {
|
||||||
value = path.substring(1, path.length - 1) // static default value.
|
value = path.substring(1, path.length - 1) // static default value.
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue