Fix some golangci-lint warnings (#4448)

This commit is contained in:
Erik Grinaker
2020-02-20 13:43:40 +01:00
committed by GitHub
parent 8010f3b4df
commit 8f48c49543
12 changed files with 19 additions and 21 deletions

View File

@@ -1644,6 +1644,7 @@ func (cs *State) tryAddVote(vote *types.Vote, peerID p2p.ID) (bool, error) {
// If the vote height is off, we'll just ignore it,
// But if it's a conflicting sig, add it to the cs.evpool.
// If it's otherwise invalid, punish peer.
// nolint: gocritic
if err == ErrVoteHeightMismatch {
return added, err
} else if voteErr, ok := err.(*types.ErrVoteConflictingVotes); ok {