mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-08-28 05:27:24 +00:00
refactor: use .finally() instead of duplicate .then().catch() calls
This commit is contained in:
parent
55016cf6d4
commit
d4cd4772f3
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue