.golangci.yml: Add intrange linter, fix issues #1459

Merged
fyrchik merged 3 commits from fyrchik/frostfs-node:golangci-intrange into master 2024-10-30 15:18:23 +00:00
Showing only changes of commit 9cf5755aa0 - Show all commits

View file

@ -659,9 +659,7 @@ func SearchObjects(ctx context.Context, prm SearchObjectsPrm) (*SearchObjectsRes
for {
n, ok = rdr.Read(buf)
for i := range n {
list = append(list, buf[i])
}
list = append(list, buf[:n]...)
if !ok {
break
}