Explicit empty catch (#349)

This commit is contained in:
Jaco
2022-05-13 07:27:24 +02:00
committed by GitHub
parent 399d439aa7
commit 669aa9f53b
4 changed files with 12 additions and 4 deletions

View File

@@ -9,4 +9,6 @@ export async function initWasm (): Promise<void> {
await initBridge(createWasm);
}
initWasm().catch(undefined);
initWasm().catch((): void => {
// cannot happen, initWasm doesn't throw
});

View File

@@ -9,4 +9,6 @@ export async function initWasm (): Promise<void> {
await initBridge(createWasm);
}
initWasm().catch(undefined);
initWasm().catch((): void => {
// cannot happen, initWasm doesn't throw
});

View File

@@ -9,4 +9,6 @@ export async function initWasm (): Promise<void> {
await initBridge(createWasm);
}
initWasm().catch(undefined);
initWasm().catch((): void => {
// cannot happen, initWasm doesn't throw
});

View File

@@ -9,4 +9,6 @@ export async function initWasm (): Promise<void> {
await initBridge(createWasm);
}
initWasm().catch(undefined);
initWasm().catch((): void => {
// cannot happen, initWasm doesn't throw
});