From d3806096b3addbe4fbae14739a03e34b81735fed Mon Sep 17 00:00:00 2001 From: Siza Date: Wed, 1 Sep 2021 00:28:50 +1200 Subject: [PATCH] Fix lint errors --- src/framework/CppUTestRunnable.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/framework/CppUTestRunnable.ts b/src/framework/CppUTestRunnable.ts index d5a54a83..4100fdeb 100644 --- a/src/framework/CppUTestRunnable.ts +++ b/src/framework/CppUTestRunnable.ts @@ -51,7 +51,7 @@ export class CppUTestRunnable extends AbstractRunnable { const reloadResult = new RunnableReloadResult(); - const processTestcases = async (testsuite: any, reloadResult: RunnableReloadResult) => { + const processTestcases = async (testsuite: XmlObject, reloadResult: RunnableReloadResult): Promise => { const suiteName = testsuite.$.name; for (let i = 0; i < testsuite.testcase.length; i++) { if (cancellationFlag.isCancellationRequested) return; @@ -79,8 +79,9 @@ export class CppUTestRunnable extends AbstractRunnable { if (xml.testsuites !== undefined) { for (let i = 0; i < xml.testsuites.testsuite.length; ++i) { - await processTestcases(xml.testsuites.testsuite[i], reloadResult) - .catch((err) => this._shared.log.info('Error', err)); + await processTestcases(xml.testsuites.testsuite[i], reloadResult).catch(err => + this._shared.log.info('Error', err), + ); } } else { await processTestcases(xml.testsuite, reloadResult);