Skip to content

Commit

Permalink
Optimize logical judgment
Browse files Browse the repository at this point in the history
  • Loading branch information
Counterflowwind committed Nov 25, 2021
1 parent b6fbf94 commit 157b542
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/core/monitor/alert/alert-apis/adapt/expression.go
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ func (a *Adapt) AggregatorKeysSet() map[string]bool {
// NotifyTargetsKeys .
func (a *Adapt) NotifyTargetsKeys(code i18n.LanguageCodes, config map[string]bool) []*pb.DisplayKey {
var keys []*pb.DisplayKey
for item, _ := range config {
for item := range config {
if item == shortMessage {
keys = append(keys, &pb.DisplayKey{Key: SMS, Display: a.t.Text(code, SMS)})
}
Expand Down

0 comments on commit 157b542

Please sign in to comment.