diff --git a/internal/llm/tools/grep.go b/internal/llm/tools/grep.go index 61d4fb79a614da282fb48cb23b8e0405f28d23ac..3064ee633cf0e54bfb9d14efdd475cda15a38c85 100644 --- a/internal/llm/tools/grep.go +++ b/internal/llm/tools/grep.go @@ -434,7 +434,7 @@ func isBinaryFile(filePath string) bool { } // Check for null bytes (common in binary files) - for i := 0; i < n; i++ { + for i := range n { if buffer[i] == 0 { return true }