Conform to no-floating-promises (#27561)

This commit is contained in:
Michael Telatynski 2024-06-12 17:17:29 +01:00 committed by GitHub
parent 9039e70990
commit a0eb94704e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 31 additions and 31 deletions

View file

@ -180,7 +180,7 @@ async function start(): Promise<void> {
// error handling begins here
// ##########################
if (!acceptBrowser) {
await new Promise<void>((resolve) => {
await new Promise<void>((resolve, reject) => {
logger.error("Browser is missing required features.");
// take to a different landing page to AWOOOOOGA at the user
showIncompatibleBrowser(() => {
@ -189,7 +189,7 @@ async function start(): Promise<void> {
}
logger.log("User accepts the compatibility risks.");
resolve();
});
}).catch(reject);
});
}