mirror of
https://github.com/tendermint/tendermint.git
synced 2026-09-30 03:35:34 +00:00
lint: enable errcheck (#5336)
## Description Enable errcheck linter throughout the codebase Closes: #5059
This commit is contained in:
+1
-1
@@ -29,7 +29,7 @@ func (ni mockNodeInfo) Validate() error { return nil }
|
||||
func (ni mockNodeInfo) CompatibleWith(other NodeInfo) error { return nil }
|
||||
|
||||
func AddPeerToSwitchPeerSet(sw *Switch, peer Peer) {
|
||||
sw.peers.Add(peer)
|
||||
sw.peers.Add(peer) //nolint:errcheck // ignore error
|
||||
}
|
||||
|
||||
func CreateRandomPeer(outbound bool) Peer {
|
||||
|
||||
Reference in New Issue
Block a user