From e2a037fca125f77927bded85fb08d8b323f4d8f5 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Mon, 13 Dec 2021 14:08:10 +0100 Subject: [PATCH] Fix return of any value in RewriteTest.ts --- ts/WoltLabSuite/Core/Acp/Ui/Option/RewriteTest.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ts/WoltLabSuite/Core/Acp/Ui/Option/RewriteTest.ts b/ts/WoltLabSuite/Core/Acp/Ui/Option/RewriteTest.ts index 6dcc6eec15..41254f9ebe 100644 --- a/ts/WoltLabSuite/Core/Acp/Ui/Option/RewriteTest.ts +++ b/ts/WoltLabSuite/Core/Acp/Ui/Option/RewriteTest.ts @@ -101,7 +101,7 @@ class RewriteTest { }); }); - const results: TestResult[] = await Promise.all(tests.map((test) => test.catch((result) => result))); + const results: TestResult[] = await Promise.all(tests.map((test) => test.catch((result: TestResult) => result))); const passed = results.every((result) => result.pass); -- 2.20.1