mirror of
https://github.com/fluencelabs/tendermint
synced 2025-07-04 07:01:40 +00:00
p2p: small lint
This commit is contained in:
@ -58,11 +58,7 @@ func (info NodeInfo) Validate() error {
|
||||
|
||||
// ensure ListenAddr is good
|
||||
_, err := NewNetAddressString(IDAddressString(info.ID, info.ListenAddr))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
// CompatibleWith checks if two NodeInfo are compatible with eachother.
|
||||
|
Reference in New Issue
Block a user