[#1211] innerring: Fix object get init error check

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
Alex Vanin 2022-03-03 18:01:30 +03:00 committed by Alex Vanin
parent 99749ea042
commit bc45a79d1f

View file

@ -135,7 +135,7 @@ func (x Client) GetObject(prm GetObjectPrm) (*GetObjectRes, error) {
}
rdr, err := x.c.ObjectGetInit(prm.ctx, cliPrm)
if err == nil {
if err != nil {
return nil, fmt.Errorf("init object search: %w", err)
}