From 90c266845b9598cd4a090d51529d46b10f367531 Mon Sep 17 00:00:00 2001 From: Jeanette Tan Date: Wed, 3 Jul 2024 17:56:48 +0800 Subject: [PATCH] fix lint Signed-off-by: Jeanette Tan --- scrape/scrape_test.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/scrape/scrape_test.go b/scrape/scrape_test.go index d380bfc34..e2313a88f 100644 --- a/scrape/scrape_test.go +++ b/scrape/scrape_test.go @@ -3379,11 +3379,10 @@ func TestConvertClassicHistograms(t *testing.T) { # TYPE %s counter %s{address="0.0.0.0",port="5001"} %d `, name, name, name, value) - } else { - return fmt.Sprintf(` + } + return fmt.Sprintf(` %s %d `, name, value) - } } genTestHistText := func(name string, withMetadata bool) string { data := map[string]interface{}{