forked from TrueCloudLab/frostfs-node
[#1211] innerring: Fix object get init error check
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
99749ea042
commit
bc45a79d1f
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue