Skip to content

Commit

Permalink
notice code duplication between the CLI formatting code
Browse files Browse the repository at this point in the history
Signed-off-by: Antoine Beaupré <[email protected]>
  • Loading branch information
anarcat committed Dec 17, 2024
1 parent cf3da8a commit 47f1d8c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions silence/silence.go
Original file line number Diff line number Diff line change
Expand Up @@ -1069,6 +1069,11 @@ func openReplace(filename string) (*replaceFile, error) {
}

// logging silence status changes.
//
// XXX: this rewrites some code present in cli/format/format.go,
// labelsMatcher() and cli/format/format_extended.go,
// FormatSilences(). refactoring this seems a little out of scope for
// now.
func (s *Silences) logginSilences(msg string, sil *pb.Silence) {
var listMatchers []string
var matcher_type_operator = map[string]string{
Expand Down

0 comments on commit 47f1d8c

Please sign in to comment.