notifier: Remove redundant format conversions. (#5960)

Signed-off-by: johncming <johncming@yahoo.com>
This commit is contained in:
johncming 2019-09-06 18:37:46 +08:00 committed by Simon Pasquier
parent dbfd493265
commit 1e51ba4d30
1 changed files with 1 additions and 1 deletions

View File

@ -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