Skip to content

Commit

Permalink
Move comment up
Browse files Browse the repository at this point in the history
Signed-off-by: George Robinson <[email protected]>
  • Loading branch information
grobinson-grafana committed May 31, 2024
1 parent 7aa0d0a commit 839ae67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion silence/silence.go
Original file line number Diff line number Diff line change
Expand Up @@ -619,6 +619,7 @@ func (s *Silences) Set(sil *pb.Silence) (string, error) {
}
}

// If we got here it's either a new silence or a replacing one.
if s.limits.MaxSilences > 0 {
// Get the number of active and pending silences to enforce limits.
q := &query{}
Expand All @@ -635,7 +636,6 @@ func (s *Silences) Set(sil *pb.Silence) (string, error) {
}
}

// If we got here it's either a new silence or a replacing one.
uid, err := uuid.NewV4()
if err != nil {
return "", fmt.Errorf("generate uuid: %w", err)
Expand Down

0 comments on commit 839ae67

Please sign in to comment.