Browse Source

Don't indirect nil after a return.

pull/8127/head
M. J. Fromberger 3 years ago
parent
commit
1ea83f6cb2
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      internal/consensus/state.go

+ 1
- 1
internal/consensus/state.go View File

@ -2169,12 +2169,12 @@ func (cs *State) defaultSetProposal(proposal *types.Proposal, recvTime time.Time
if !cs.Validators.GetProposer().PubKey.VerifySignature(types.ProposalSignBytes(cs.state.ChainID, p), proposal.Signature) {
return ErrInvalidProposalSignature
}
proposal.Signature = p.Signature
return nil
}(); err != nil {
return err
}
proposal.Signature = p.Signature
func() {
cs.mtx.Lock()
defer cs.mtx.Unlock()


Loading…
Cancel
Save