Skip to content

Commit

Permalink
silence gofumpt error
Browse files Browse the repository at this point in the history
Signed-off-by: Antoine Beaupré <anarcat@debian.org>
  • Loading branch information
anarcat committed Dec 17, 2024
1 parent 7165770 commit c524d30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions silence/silence.go
Original file line number Diff line number Diff line change
Expand Up @@ -1076,14 +1076,14 @@ func openReplace(filename string) (*replaceFile, error) {
// now.
func (s *Silences) logginSilences(msg string, sil *pb.Silence) {
var listMatchers []string
var matcher_type_operator = map[string]string{
matcherTypeOperator := map[string]string{
"EQUAL": "=",
"REGEXP": "=~",
"NOT_EQUAL": "!=",
"NOT_REGEXP": "!~",
}
for _, matcher := range sil.Matchers {
ms := []string{matcher.Name, matcher_type_operator[matcher.Type.String()], matcher.Pattern}
ms := []string{matcher.Name, matcherTypeOperator[matcher.Type.String()], matcher.Pattern}
m := strings.Join(ms, ``)
listMatchers = append(listMatchers, m)
}
Expand Down

0 comments on commit c524d30

Please sign in to comment.