mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-13 05:11:21 +00:00
core: apply megacheck vet tool (unused, gosimple, staticcheck)
This commit is contained in:
@ -366,9 +366,9 @@ func (c *MConnection) sendMsgPacket() bool {
|
||||
// Nothing to send?
|
||||
if leastChannel == nil {
|
||||
return true
|
||||
} else {
|
||||
// c.Logger.Info("Found a msgPacket to send")
|
||||
}
|
||||
} // else {
|
||||
// c.Logger.Info("Found a msgPacket to send")
|
||||
//}
|
||||
|
||||
// Make & send a msgPacket from this channel
|
||||
n, err := leastChannel.writeMsgPacketTo(c.bufWriter)
|
||||
@ -468,7 +468,7 @@ FOR_LOOP:
|
||||
|
||||
// Cleanup
|
||||
close(c.pong)
|
||||
for _ = range c.pong {
|
||||
for range c.pong {
|
||||
// Drain
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user