mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-22 11:25:15 +00:00
remove unnecessary var
This commit is contained in:
parent
2b4441a0d1
commit
292e9d90ca
1 changed files with 1 additions and 5 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue