summaryrefslogtreecommitdiffhomepage
path: root/internal/llm/tools/shell
diff options
context:
space:
mode:
Diffstat (limited to 'internal/llm/tools/shell')
-rw-r--r--internal/llm/tools/shell/shell.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/llm/tools/shell/shell.go b/internal/llm/tools/shell/shell.go
index d76cb1a2e..64592f67d 100644
--- a/internal/llm/tools/shell/shell.go
+++ b/internal/llm/tools/shell/shell.go
@@ -221,7 +221,7 @@ func (s *PersistentShell) killChildren() {
return
}
- for _, pidStr := range strings.Split(string(output), "\n") {
+ for pidStr := range strings.SplitSeq(string(output), "\n") {
if pidStr = strings.TrimSpace(pidStr); pidStr != "" {
var pid int
fmt.Sscanf(pidStr, "%d", &pid)