forked from MapComplete/MapComplete
Various cleanups
This commit is contained in:
parent
fd2ed950cc
commit
3ac7a3c59e
5 changed files with 3 additions and 54 deletions
2
Utils.ts
2
Utils.ts
|
@ -330,7 +330,7 @@ export class Utils {
|
|||
return cached.promise
|
||||
}
|
||||
}
|
||||
const promise = Utils.downloadJson(url, headers)
|
||||
const promise = /*NO AWAIT as we work with the promise directly */Utils.downloadJson(url, headers)
|
||||
Utils._download_cache.set(url, {promise, timestamp: new Date().getTime()})
|
||||
return await promise
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue