[#131] pool: Fix ineffectual error assignments

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2022-02-11 19:19:45 +03:00 committed by LeL
parent caf31a928c
commit 7de81cd585

View file

@ -895,6 +895,9 @@ func (p *pool) GetObject(ctx context.Context, addr address.Address, opts ...Call
return nil
})
if err != nil {
return nil, err
}
return &res, nil
}
@ -936,6 +939,9 @@ func (p *pool) HeadObject(ctx context.Context, addr address.Address, opts ...Cal
return nil
})
if err != nil {
return nil, err
}
return &obj, nil
}