Skip to content

Commit c96e64f

Browse files
committed
fix for lint erros
1 parent 255ba0d commit c96e64f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

packages/core/src/codewhispererChat/tools/executeBash.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,8 @@ exec bash -c "
347347
if (this.childProcess && this.childProcess.pid) {
348348
try {
349349
// On Unix systems, negative PID kills the process group
350-
const pid = -this.childProcess.pid
350+
const childProcessPid = this.childProcess.pid
351+
const pid = -childProcessPid
351352
this.logger.debug(`Sending SIGTERM to process group ${pid}`)
352353
process.kill(pid, 'SIGTERM')
353354
} catch (err) {
@@ -367,7 +368,8 @@ exec bash -c "
367368
// Try to kill the process group with SIGKILL
368369
if (this.childProcess.pid) {
369370
try {
370-
const pid = -this.childProcess.pid
371+
const childProcessPid = this.childProcess.pid
372+
const pid = -childProcessPid
371373
this.logger.debug(`Sending SIGKILL to process group ${pid}`)
372374
process.kill(pid, 'SIGKILL')
373375
} catch (err) {

0 commit comments

Comments
 (0)