wdpost: Don't return nil from checkSectors

This commit is contained in:
Łukasz Magiera 2020-06-17 18:21:40 +02:00
parent 8b725b4b8c
commit e60dd219dc

View File

@ -99,10 +99,6 @@ func (s *WindowPoStScheduler) checkSectors(ctx context.Context, check *abi.BitFi
log.Warnw("Checked sectors", "checked", len(tocheck), "good", len(sectors))
if len(sectors) == 0 { // nothing to recover
return nil, nil
}
sbf := bitfield.New()
for s := range sectors {
(&sbf).Set(uint64(s.Number))