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

Signed-off-by: Alex Vanin <alexey@nspcc.ru>
remotes/fyrchik/relay-config
Alex Vanin 2022-03-03 18:01:30 +03:00 committed by Alex Vanin
parent 99749ea042
commit bc45a79d1f
1 changed files with 1 additions and 1 deletions

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)
}