From 485bf30ea94ea574ce38c8afeff1dc03f9ddbb78 Mon Sep 17 00:00:00 2001 From: zhaowang Date: Fri, 23 Aug 2024 12:28:13 +0800 Subject: [PATCH] Remove redundant return Signed-off-by: zhaowang --- cmd/promtool/main_test.go | 1 - 1 file changed, 1 deletion(-) diff --git a/cmd/promtool/main_test.go b/cmd/promtool/main_test.go index d499d0d06d..fc02136f88 100644 --- a/cmd/promtool/main_test.go +++ b/cmd/promtool/main_test.go @@ -536,7 +536,6 @@ func TestCheckRules(t *testing.T) { _, err := checkConfig(false, "./testdata/prometheus-config.lint.yml", false, newLintConfig(lintOptionLongScrapeInterval, false)) expectedErrMsg := "lint error Long Scrape Interval found. Data point will be marked as stale. Job: long_scrape_interval_test. Interval: 1h" require.Equalf(t, expectedErrMsg, err.Error(), "Expected error %q, got %q", expectedErrMsg, err.Error()) - return }) }