mirror of
https://github.com/tendermint/tendermint.git
synced 2026-10-01 04:05:45 +00:00
lint: enable errcheck (#5336)
## Description Enable errcheck linter throughout the codebase Closes: #5059
This commit is contained in:
+4
-2
@@ -36,11 +36,13 @@ func NewPeer(ip net.IP) *Peer {
|
||||
kv: make(map[string]interface{}),
|
||||
}
|
||||
mp.BaseService = service.NewBaseService(nil, "MockPeer", mp)
|
||||
mp.Start()
|
||||
if err := mp.Start(); err != nil {
|
||||
panic(err)
|
||||
}
|
||||
return mp
|
||||
}
|
||||
|
||||
func (mp *Peer) FlushStop() { mp.Stop() }
|
||||
func (mp *Peer) FlushStop() { mp.Stop() } //nolint:errcheck //ignore error
|
||||
func (mp *Peer) TrySend(chID byte, msgBytes []byte) bool { return true }
|
||||
func (mp *Peer) Send(chID byte, msgBytes []byte) bool { return true }
|
||||
func (mp *Peer) NodeInfo() p2p.NodeInfo {
|
||||
|
||||
Reference in New Issue
Block a user