Ver Fonte

remove unnecessary var

Kujtim Hoxha há 11 meses atrás
pai
commit
292e9d90ca
1 ficheiros alterados com 1 adições e 5 exclusões
  1. 1 5
      internal/llm/prompt/prompt.go

+ 1 - 5
internal/llm/prompt/prompt.go

@@ -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")