[client] Return empty map from test mock GetStats to satisfy nilnil linter

This commit is contained in:
Zoltan Papp
2026-07-19 21:48:53 +02:00
parent 13433af4a5
commit f1c06ef1a4

View File

@@ -37,7 +37,9 @@ func (m *endpointTestWGIface) RemovePeer(string) error {
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 }