From c91a7d348251acb360f797eebdb4a304d7095681 Mon Sep 17 00:00:00 2001 From: Jeff Hodges Date: Tue, 30 Jul 2024 09:40:00 -0700 Subject: [PATCH] remove conditional in main_test.go --- main_test.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/main_test.go b/main_test.go index 3061808e7..75d5d5a40 100644 --- a/main_test.go +++ b/main_test.go @@ -40,11 +40,9 @@ func TestMain(m *testing.M) { if err != nil { log.Fatal(err) } - if conf.Statsd.Addr != "" { - err = ag.addStats(conf) - if err != nil { - log.Fatal(err) - } + err = ag.addStats(conf) + if err != nil { + log.Fatal(err) } if conf.HawkTimestampValidity != "" { ag.hawkMaxTimestampSkew, err = time.ParseDuration(conf.HawkTimestampValidity)