refactor: use .finally() instead of duplicate .then().catch() calls

This commit is contained in:
Roo Code 2025-11-16 10:30:51 +00:00
parent 55016cf6d4
commit d4cd4772f3

View file

@ -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()
}