Conform to no-floating-promises (#27561)
This commit is contained in:
parent
9039e70990
commit
a0eb94704e
8 changed files with 31 additions and 31 deletions
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue