correct it

This commit is contained in:
leviok 2020-10-23 16:49:49 +08:00 committed by zhangkun
parent 9b199f0476
commit 9fe3649dd2

View File

@ -793,7 +793,7 @@ func (a *StateAPI) StateSectorPreCommitInfo(ctx context.Context, maddr address.A
if err != nil {
return miner.SectorPreCommitOnChainInfo{}, err
} else if pci == nil {
return miner.SectorPreCommitOnChainInfo{}, nil
return nil, xerrors.Errorf("precommit info is not exists")
}
return *pci, err