Explicit empty catch (#349)

This commit is contained in:
Jaco
2022-05-13 08:27:24 +03:00
committed by GitHub
parent 399d439aa7
commit 669aa9f53b
4 changed files with 12 additions and 4 deletions
+3 -1
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
});
+3 -1
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
});
+3 -1
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
});
+3 -1
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
});