Various cleanups

This commit is contained in:
Pieter Vander Vennet 2021-10-20 00:19:33 +02:00
parent fd2ed950cc
commit 3ac7a3c59e
5 changed files with 3 additions and 54 deletions

View file

@ -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
}