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/012_async.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cli/tests/012_async.ts') diff --git a/cli/tests/012_async.ts b/cli/tests/012_async.ts index 773272ca1..536197b68 100644 --- a/cli/tests/012_async.ts +++ b/cli/tests/012_async.ts @@ -1,6 +1,6 @@ // Check that we can use the async keyword. -async function main(): Promise { - await new Promise((resolve): void => { +async function main() { + await new Promise((resolve) => { console.log("2"); setTimeout(resolve, 100); }); -- cgit v1.2.3