Skip to content

Commit df4b2b7

Browse files
committed
fix: correct method signature
1 parent 68cafb3 commit df4b2b7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/sfCommand.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,12 +399,14 @@ export abstract class SfCommand<T> extends Command {
399399
throw sfCommandError;
400400
}
401401

402-
// eslint-disable-next-line @typescript-eslint/require-await
403-
protected async finally(): Promise<void> {
402+
// eslint-disable-next-line @typescript-eslint/require-await, @typescript-eslint/no-explicit-any
403+
protected async finally(_: Error | undefined): Promise<any> {
404404
// flush warnings
405405
this.warningsToFlush.forEach((warning) => {
406406
this.warn(warning);
407407
});
408+
409+
return super.finally(_);
408410
}
409411

410412
public abstract run(): Promise<T>;

0 commit comments

Comments
 (0)