modify lint error

This commit is contained in:
zgfzgf 2020-11-03 21:28:01 +08:00
parent 3c2cd506ec
commit 3e7efad0fd

View File

@ -61,8 +61,8 @@ func (bo *BenchResults) SumSealingTime() error {
if len(bo.SealingResults) <= 0 { if len(bo.SealingResults) <= 0 {
return xerrors.Errorf("BenchResults SealingResults len <= 0") return xerrors.Errorf("BenchResults SealingResults len <= 0")
} }
if len(bo.SealingResults) != int(bo.SectorNumber) { if len(bo.SealingResults) != bo.SectorNumber {
return xerrors.Errorf("BenchResults SealingResults len(%d) != bo.SectorNumber(%d)", len(bo.SealingResults), int(bo.SectorNumber)) return xerrors.Errorf("BenchResults SealingResults len(%d) != bo.SectorNumber(%d)", len(bo.SealingResults), bo.SectorNumber)
} }
for _, sealing := range bo.SealingResults { for _, sealing := range bo.SealingResults {