Skip to content

Commit

Permalink
remove conditional in main_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
jmhodges committed Jul 30, 2024
1 parent 57274df commit c91a7d3
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c91a7d3

Please sign in to comment.