From d4cd4772f371f36774ce35b95f0570f0d1eaa1d8 Mon Sep 17 00:00:00 2001 From: Roo Code Date: Sun, 16 Nov 2025 10:30:51 +0000 Subject: [PATCH] refactor: use .finally() instead of duplicate .then().catch() calls --- src/integrations/terminal/ExecaTerminalProcess.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/integrations/terminal/ExecaTerminalProcess.ts b/src/integrations/terminal/ExecaTerminalProcess.ts index d766ec25db..fbcd26cc39 100644 --- a/src/integrations/terminal/ExecaTerminalProcess.ts +++ b/src/integrations/terminal/ExecaTerminalProcess.ts @@ -348,7 +348,7 @@ export class ExecaTerminalProcess extends BaseTerminalProcess { // If PID update is in progress, wait for it before killing if (this.pidUpdatePromise) { - this.pidUpdatePromise.then(() => performKill()).catch(() => performKill()) + this.pidUpdatePromise.finally(performKill) } else { performKill() }