From ac615cee167b0a7f5cade82b52d58811089e3d27 Mon Sep 17 00:00:00 2001 From: Patrick Oyarzun Date: Fri, 9 Dec 2022 17:30:13 -0600 Subject: [PATCH] Fix linter --- component/mimir/rules/events_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/component/mimir/rules/events_test.go b/component/mimir/rules/events_test.go index 72c73db4c158..062a850e3117 100644 --- a/component/mimir/rules/events_test.go +++ b/component/mimir/rules/events_test.go @@ -52,6 +52,9 @@ func (m *fakeMimirClient) DeleteRuleGroup(ctx context.Context, namespace, group func (m *fakeMimirClient) deleteLocked(namespace, group string) { for ns, v := range m.rules { + if namespace != "" && namespace != ns { + continue + } for i, g := range v { if g.Name == group { m.rules[ns] = append(m.rules[ns][:i], m.rules[ns][i+1:]...)