notifier: Remove redundant format conversions. (#5960)
Signed-off-by: johncming <johncming@yahoo.com>
This commit is contained in:
parent
dbfd493265
commit
1e51ba4d30
|
@ -567,7 +567,7 @@ func alertsToOpenAPIAlerts(alerts []*Alert) models.PostableAlerts {
|
|||
func labelsToOpenAPILabelSet(modelLabelSet labels.Labels) models.LabelSet {
|
||||
apiLabelSet := models.LabelSet{}
|
||||
for _, label := range modelLabelSet {
|
||||
apiLabelSet[label.Name] = string(label.Value)
|
||||
apiLabelSet[label.Name] = label.Value
|
||||
}
|
||||
|
||||
return apiLabelSet
|
||||
|
|
Loading…
Reference in New Issue