Explorar el Código

remove unnecessary var

Kujtim Hoxha hace 1 año
padre
commit
292e9d90ca
Se han modificado 1 ficheros con 1 adiciones y 5 borrados
  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")