Skip to content

Commit 9e1a8c8

Browse files
authored
fix linter
1 parent fda558e commit 9e1a8c8

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pkg/services/grafana.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func (n *GrafanaNotification) GetTemplater(name string, f texttemplate.FuncMap)
3636
return err
3737
}
3838
notification.Grafana.Tags = grafanaTagsData.String()
39-
39+
4040
return nil
4141
}, nil
4242
}
@@ -67,16 +67,16 @@ func (s *grafanaService) Send(notification Notification, dest Destination) error
6767
tags := strings.Split(dest.Recipient, "|")
6868

6969
// append tags from notification grafana.tags field ..
70-
if notification.Grafana != nil && notification.Grafana.Tags != "" {
70+
if notification.Grafana != nil && notification.Grafana.Tags != "" {
7171
notificationTags := strings.Split(notification.Grafana.Tags, "|")
72-
tags = append(tags, notificationTags...)
73-
}
72+
tags = append(tags, notificationTags...)
73+
}
7474

7575
// append global tags from opts
7676
if s.opts.Tags != "" {
7777
optsTags := strings.Split(s.opts.Tags, "|")
78-
tags = append(tags, optsTags...)
79-
}
78+
tags = append(tags, optsTags...)
79+
}
8080

8181
ga := GrafanaAnnotation{
8282
Time: time.Now().Unix() * 1000, // unix ts in ms

0 commit comments

Comments
 (0)