Fix PeerCount lint warning

This commit is contained in:
Dmitry Shulyak 2018-01-25 12:16:59 +02:00
parent 889eeca31d
commit 28a122f4aa
1 changed files with 1 additions and 0 deletions

View File

@ -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