From 3f0cf9619fce71a8898c495501df4bdb0e07e735 Mon Sep 17 00:00:00 2001 From: Leo K Date: Thu, 5 Aug 2021 13:08:58 +0200 Subject: refactor(cli/tests): remove unnecessary void return types (#11577) --- cli/tests/018_async_catch.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/tests/018_async_catch.ts') 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 { throw new Error("message"); } -async function call(): Promise { +async function call() { try { console.log("before await fn()"); await fn(); @@ -11,4 +11,4 @@ async function call(): Promise { } console.log("after try-catch"); } -call().catch((): void => console.log("outer catch")); +call().catch(() => console.log("outer catch")); -- cgit v1.2.3