forked from TrueCloudLab/frostfs-node
[#1211] node: Fix object get init error check
Signed-off-by: Alex Vanin <alexey@nspcc.ru>
This commit is contained in:
parent
bc45a79d1f
commit
cbc816d57d
1 changed files with 1 additions and 1 deletions
|
@ -166,7 +166,7 @@ func GetObject(prm GetObjectPrm) (*GetObjectRes, error) {
|
||||||
prm.cliPrm.WithXHeaders(prm.xHeadersPrm()...)
|
prm.cliPrm.WithXHeaders(prm.xHeadersPrm()...)
|
||||||
|
|
||||||
rdr, err := prm.cli.ObjectGetInit(prm.ctx, prm.cliPrm)
|
rdr, err := prm.cli.ObjectGetInit(prm.ctx, prm.cliPrm)
|
||||||
if err == nil {
|
if err != nil {
|
||||||
return nil, fmt.Errorf("init object reading: %w", err)
|
return nil, fmt.Errorf("init object reading: %w", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue