diff options
author | Leo K <crowlkats@toaxl.com> | 2021-08-05 13:08:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-05 13:08:58 +0200 |
commit | 3f0cf9619fce71a8898c495501df4bdb0e07e735 (patch) | |
tree | 1b8af2c832f8344f9a39f55326d576eab63f447f /cli/tests/018_async_catch.ts | |
parent | 299c7cfe54cb184e0d0c18b00a154c953b433ebf (diff) |
refactor(cli/tests): remove unnecessary void return types (#11577)
Diffstat (limited to 'cli/tests/018_async_catch.ts')
-rw-r--r-- | cli/tests/018_async_catch.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cli/tests/018_async_catch.ts b/cli/tests/018_async_catch.ts index 85423ceda..ac43a52e8 100644 --- a/cli/tests/018_async_catch.ts +++ b/cli/tests/018_async_catch.ts @@ -1,7 +1,7 @@ function fn(): Promise<never> { throw new Error("message"); } -async function call(): Promise<void> { +async function call() { try { console.log("before await fn()"); await fn(); @@ -11,4 +11,4 @@ async function call(): Promise<void> { } console.log("after try-catch"); } -call().catch((): void => console.log("outer catch")); +call().catch(() => console.log("outer catch")); |