Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ZenGround0 committed Jul 31, 2023
1 parent 6a07def commit 482c904
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions cmd/lotus-shed/cron-count.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,9 @@ var minerDeadlinePartitionMeasurementCmd = &cli.Command{
}
var sectorsBf bitfield.BitField
var accumulator []uint64
h := ref.Height
if err := expiryQArray.ForEach(&sectorsBf, func(i int64) error {
if abi.ChainEpoch(i) > ref.Height {
if abi.ChainEpoch(i) > h {
return nil
}
sns, err := sectorsBf.All(abi.MaxSectorNumber)
Expand Down Expand Up @@ -261,7 +262,9 @@ var minerDeadlinePartitionMeasurementCmd = &cli.Command{
}

// output partition info
json.NewEncoder(os.Stdout).Encode(dSummaries)
if err := json.NewEncoder(os.Stdout).Encode(dSummaries); err != nil {
return err
}
return nil
},
}
Expand Down

0 comments on commit 482c904

Please sign in to comment.