diff options
| author | Kujtim Hoxha <[email protected]> | 2025-04-27 20:34:20 +0200 |
|---|---|---|
| committer | Kujtim Hoxha <[email protected]> | 2025-04-27 20:34:20 +0200 |
| commit | 292e9d90caca712e5ee27c60925582b33ce05a98 (patch) | |
| tree | 6c5348a41746f8ce8252b8b5def32fcf487e9cc3 | |
| parent | 2b4441a0d114fec303a8ab9a9ce5e31ac8140150 (diff) | |
| download | opencode-292e9d90caca712e5ee27c60925582b33ce05a98.tar.gz opencode-292e9d90caca712e5ee27c60925582b33ce05a98.zip | |
remove unnecessary var
| -rw-r--r-- | internal/llm/prompt/prompt.go | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/internal/llm/prompt/prompt.go b/internal/llm/prompt/prompt.go index 4f7e84dbe..565e93375 100644 --- a/internal/llm/prompt/prompt.go +++ b/internal/llm/prompt/prompt.go @@ -90,13 +90,9 @@ func processContextPaths(workDir string, paths []string) string { close(resultCh) }() - var ( - results = make([]string, 0) - i int - ) + results := make([]string, 0) for result := range resultCh { results = append(results, result) - i++ } return strings.Join(results, "\n") |
