diff --git a/satellite/repair/repairer/repairer.go b/satellite/repair/repairer/repairer.go index 692632b47..606c36662 100644 --- a/satellite/repair/repairer/repairer.go +++ b/satellite/repair/repairer/repairer.go @@ -163,11 +163,10 @@ func (service *Service) worker(ctx context.Context, seg *queue.InjuredSegment) ( } else { service.log.Debug("removing repaired segment from repair queue") } - if shouldDelete { - delErr := service.queue.Delete(ctx, seg) - if delErr != nil { - err = errs.Combine(err, Error.New("failed to remove segment from queue: %v", delErr)) - } + + delErr := service.queue.Delete(ctx, seg) + if delErr != nil { + err = errs.Combine(err, Error.New("failed to remove segment from queue: %v", delErr)) } } if err != nil {