mirror of
https://github.com/sst/opencode.git
synced 2025-08-04 13:30:52 +00:00
fix context
This commit is contained in:
parent
8f3a94df92
commit
2b4441a0d1
1 changed files with 4 additions and 3 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue