mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-28 15:29:09 +01:00
[client] Return empty map from test mock GetStats to satisfy nilnil linter
This commit is contained in:
@@ -37,7 +37,9 @@ func (m *endpointTestWGIface) RemovePeer(string) error {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (m *endpointTestWGIface) GetStats() (map[string]configurer.WGStats, error) { return nil, nil }
|
func (m *endpointTestWGIface) GetStats() (map[string]configurer.WGStats, error) {
|
||||||
|
return map[string]configurer.WGStats{}, nil
|
||||||
|
}
|
||||||
|
|
||||||
func (m *endpointTestWGIface) GetProxy() wgproxy.Proxy { return nil }
|
func (m *endpointTestWGIface) GetProxy() wgproxy.Proxy { return nil }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user