Skip to content

Commit

Permalink
Don't return nil in StateSectorPreCommitInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
magik6k authored and codefather-filestar committed Jun 17, 2021
1 parent 2522063 commit 1b0b2ab
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 @@ -780,7 +780,7 @@ func (a *StateAPI) StateSectorPreCommitInfo(ctx context.Context, maddr address.A
if err != nil {
return miner.SectorPreCommitOnChainInfo{}, err
} else if pci == nil {
return nil, xerrors.Errorf("precommit info is not exists")
return miner.SectorPreCommitOnChainInfo{}, xerrors.Errorf("precommit info is not exists")
}

return *pci, err
Expand Down

0 comments on commit 1b0b2ab

Please sign in to comment.