satellite/repair: remove superfluous conditional

Change-Id: If80ae0a1a4ee436763ed437fc77b0ed26db17a68
This commit is contained in:
Erik van Velzen 2022-04-28 15:19:00 +02:00
parent 5b550a192c
commit f23d5eb5a1

View File

@ -163,13 +163,12 @@ func (service *Service) worker(ctx context.Context, seg *queue.InjuredSegment) (
} else { } else {
service.log.Debug("removing repaired segment from repair queue") service.log.Debug("removing repaired segment from repair queue")
} }
if shouldDelete {
delErr := service.queue.Delete(ctx, seg) delErr := service.queue.Delete(ctx, seg)
if delErr != nil { if delErr != nil {
err = errs.Combine(err, Error.New("failed to remove segment from queue: %v", delErr)) err = errs.Combine(err, Error.New("failed to remove segment from queue: %v", delErr))
} }
} }
}
if err != nil { if err != nil {
return Error.Wrap(err) return Error.Wrap(err)
} }