mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-24 03:04:21 +01:00
fix context
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user