Skip to content

Commit 292e9d9

Browse files
committed
remove unnecessary var
1 parent 2b4441a commit 292e9d9

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

internal/llm/prompt/prompt.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,9 @@ func processContextPaths(workDir string, paths []string) string {
9090
close(resultCh)
9191
}()
9292

93-
var (
94-
results = make([]string, 0)
95-
i int
96-
)
93+
results := make([]string, 0)
9794
for result := range resultCh {
9895
results = append(results, result)
99-
i++
10096
}
10197

10298
return strings.Join(results, "\n")

0 commit comments

Comments
 (0)