diff --git a/cmd/neofs-cli/internal/client/client.go b/cmd/neofs-cli/internal/client/client.go index 80e3f8b92..10d6bc3b7 100644 --- a/cmd/neofs-cli/internal/client/client.go +++ b/cmd/neofs-cli/internal/client/client.go @@ -679,14 +679,13 @@ func SearchObjects(prm SearchObjectsPrm) (*SearchObjectsRes, error) { for { n, ok = rdr.Read(buf) - if !ok { - break - } - for i := 0; i < n; i++ { v := buf[i] list = append(list, &v) } + if !ok { + break + } } _, err = rdr.Close()