From 066770f252ba1af4b4295d760798ed1d853512cd Mon Sep 17 00:00:00 2001 From: fuling Date: Wed, 11 Oct 2023 11:25:35 +0800 Subject: [PATCH] lint Signed-off-by: liguozhong --- notifier/notifier.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/notifier/notifier.go b/notifier/notifier.go index e60cc487de5d..f6101dff8ae6 100644 --- a/notifier/notifier.go +++ b/notifier/notifier.go @@ -651,9 +651,7 @@ func (a Target) Labels() labels.Labels { func (a Target) DiscoveredLabels() labels.Labels { lset := labels.Labels{} - for _, l := range a.discoveredLabels { - lset = append(lset, l) - } + lset = append(lset, a.discoveredLabels...) return lset }