From f1c06ef1a47adbb4cecce9c88c1f792d0cbc764c Mon Sep 17 00:00:00 2001 From: Zoltan Papp Date: Sun, 19 Jul 2026 21:48:53 +0200 Subject: [PATCH] [client] Return empty map from test mock GetStats to satisfy nilnil linter --- client/internal/peer/endpoint_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/internal/peer/endpoint_test.go b/client/internal/peer/endpoint_test.go index f1affe88c..9d3613ba2 100644 --- a/client/internal/peer/endpoint_test.go +++ b/client/internal/peer/endpoint_test.go @@ -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 }