forked from TrueCloudLab/frostfs-node
[#1598] engine: Drop unnecessary result structs
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
fb928616cc
commit
eff95bd632
7 changed files with 36 additions and 59 deletions
|
@ -42,8 +42,7 @@ func (s *Server) DropObjects(ctx context.Context, req *control.DropObjectsReques
|
|||
prm.WithForceRemoval()
|
||||
prm.WithAddress(addrList[i])
|
||||
|
||||
_, err := s.s.Delete(ctx, prm)
|
||||
if err != nil && firstErr == nil {
|
||||
if err := s.s.Delete(ctx, prm); err != nil && firstErr == nil {
|
||||
firstErr = err
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue