Skip to content

Commit

Permalink
Fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Logiraptor committed Dec 13, 2022
1 parent faaabcf commit ac615ce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions component/mimir/rules/events_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:]...)
Expand Down

0 comments on commit ac615ce

Please sign in to comment.