From b99158ded8a8a9f3dc99a11ef10e8af3319b4fa1 Mon Sep 17 00:00:00 2001 From: epam-avramenko Date: Thu, 20 Jun 2024 12:12:10 +0300 Subject: [PATCH] #192. Eslint fix. --- lib/reporter.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/lib/reporter.js b/lib/reporter.js index e9fbe42..a1b7eed 100644 --- a/lib/reporter.js +++ b/lib/reporter.js @@ -74,10 +74,9 @@ class Reporter { } runEnd() { - const basePromise = - this.config.reporterOptions.launchId - ? this.client.getPromiseFinishAllItems(this.tempLaunchId) - : this.client.finishLaunch( + const basePromise = this.config.reporterOptions.launchId + ? this.client.getPromiseFinishAllItems(this.tempLaunchId) + : this.client.finishLaunch( this.tempLaunchId, Object.assign( { @@ -87,8 +86,8 @@ class Reporter { ), ); - const finishLaunchPromise = basePromise - .promise.then(() => { + const finishLaunchPromise = basePromise.promise + .then(() => { const { launch, isLaunchMergeRequired } = this.config.reporterOptions; if (isLaunchMergeRequired) { deleteMergeLaunchLockFile(launch, this.tempLaunchId);