[#131] pool: Fix ineffectual error assignments
Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
parent
caf31a928c
commit
7de81cd585
1 changed files with 6 additions and 0 deletions
|
@ -895,6 +895,9 @@ func (p *pool) GetObject(ctx context.Context, addr address.Address, opts ...Call
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
return &res, nil
|
return &res, nil
|
||||||
}
|
}
|
||||||
|
@ -936,6 +939,9 @@ func (p *pool) HeadObject(ctx context.Context, addr address.Address, opts ...Cal
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
|
||||||
return &obj, nil
|
return &obj, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue