Skip to content

Commit

Permalink
correct it
Browse files Browse the repository at this point in the history
  • Loading branch information
leviok authored and zhangkun committed Oct 23, 2020
1 parent 9d590ac commit 8f4a489
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/impl/full/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -686,7 +686,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
Expand Down

0 comments on commit 8f4a489

Please sign in to comment.