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