From 1e51ba4d30ef214469a68290b24829d3de349218 Mon Sep 17 00:00:00 2001 From: johncming Date: Fri, 6 Sep 2019 18:37:46 +0800 Subject: [PATCH] notifier: Remove redundant format conversions. (#5960) Signed-off-by: johncming --- notifier/notifier.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notifier/notifier.go b/notifier/notifier.go index 0df441aec1..9540cdce68 100644 --- a/notifier/notifier.go +++ b/notifier/notifier.go @@ -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