on main help sign in
feat: use range
b700ec3Raphael Amorim
internal/llm/tools/grep.go+1−1
@@ -434,7 +434,7 @@ func isBinaryFile(filePath string) bool {
434 }
434 }
435
435
436 // Check for null bytes (common in binary files)
436 // Check for null bytes (common in binary files)
437− for i := 0; i < n; i++ {
437+ for i := range n {
438 if buffer[i] == 0 {
438 if buffer[i] == 0 {
439 return true
439 return true
440 }
440 }