mirror of
https://github.com/status-im/status-go.git
synced 2025-02-01 17:38:36 +00:00
Fix PeerCount lint warning
This commit is contained in:
parent
889eeca31d
commit
28a122f4aa
@ -295,6 +295,7 @@ func (m *NodeManager) addPeer(url string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// PeerCount returns the number of connected peers.
|
||||
func (m *NodeManager) PeerCount() int {
|
||||
if m.node == nil || m.node.Server() == nil {
|
||||
return 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user