Skip to content

Commit 452be87

Browse files
fix more lint issues + revert stopwatch changes
Signed-off-by: Aramis Sennyey <aramissennyeydd@users.noreply.github.com>
1 parent b4e86fd commit 452be87

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

libraries/rush-lib/src/cli/scriptActions/PhasedScriptAction.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@ import { FlagFile } from '../../api/FlagFile';
5757
import { WeightedOperationPlugin } from '../../logic/operations/WeightedOperationPlugin';
5858
import { getVariantAsync, VARIANT_PARAMETER } from '../../api/Variants';
5959
import { Selection } from '../../logic/Selection';
60-
import type { IOperationStateJson } from '../../logic/operations/OperationStateFile';
6160

6261
/**
6362
* Constructor parameters for PhasedScriptAction.
@@ -808,7 +807,7 @@ export class PhasedScriptAction extends BaseScriptAction<IPhasedCommandConfig> {
808807
executionManagerOptions
809808
);
810809

811-
const { isInitial, isWatch, cobuildConfiguration } = options.executeOperationsContext;
810+
const { isInitial, isWatch } = options.executeOperationsContext;
812811

813812
let success: boolean = false;
814813
let result: IExecutionResult | undefined;

libraries/rush-lib/src/logic/operations/OperationExecutionRecord.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,19 +320,18 @@ export class OperationExecutionRecord implements IOperationRunnerContext, IOpera
320320
? OperationStatus.NoOp
321321
: OperationStatus.Skipped;
322322
}
323-
this.stopwatch.stop();
324323
// Delegate global state reporting
325324
await onResult(this);
326325
} catch (error) {
327326
this.status = OperationStatus.Failure;
328327
this.error = error;
329-
this.stopwatch.stop();
330328
// Delegate global state reporting
331329
await onResult(this);
332330
} finally {
333331
if (this.isTerminal) {
334332
this._collatedWriter?.close();
335333
this.stdioSummarizer.close();
334+
this.stopwatch.stop();
336335
}
337336
}
338337
}

0 commit comments

Comments
 (0)