diff options
Diffstat (limited to 'internal')
| -rw-r--r-- | internal/llm/prompt/prompt.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/internal/llm/prompt/prompt.go b/internal/llm/prompt/prompt.go index 7290ed9a5..4f7e84dbe 100644 --- a/internal/llm/prompt/prompt.go +++ b/internal/llm/prompt/prompt.go @@ -91,11 +91,11 @@ func processContextPaths(workDir string, paths []string) string { }() var ( - results = make([]string, len(resultCh)) + results = make([]string, 0) i int ) for result := range resultCh { - results[i] = result + results = append(results, result) i++ } @@ -108,4 +108,5 @@ func processFile(filePath string) string { return "" } return "# From:" + filePath + "\n" + string(content) -}
\ No newline at end of file +} + |
