diff options
author | Matthew Holt <mholt@users.noreply.github.com> | 2022-08-16 10:03:19 -0600 |
---|---|---|
committer | Matthew Holt <mholt@users.noreply.github.com> | 2022-08-16 10:03:19 -0600 |
commit | a944de4ab7acfdd114d11a2ca0d267110ba9c152 (patch) | |
tree | c470ee2868d1b9465387bd29f06bf2ce0370e7af /modules | |
parent | a479943acd70068c4b80d3a8f4b8dd7ab93ca2ba (diff) |
Clean up metrics test code
No need to use != for booleans
Diffstat (limited to 'modules')
-rw-r--r-- | modules/metrics/metrics_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/metrics/metrics_test.go b/modules/metrics/metrics_test.go index d5bdf50..9eb02fb 100644 --- a/modules/metrics/metrics_test.go +++ b/modules/metrics/metrics_test.go @@ -21,7 +21,7 @@ func TestMetricsUnmarshalCaddyfile(t *testing.T) { t.Errorf("unexpected error: %v", err) } - if m.DisableOpenMetrics != false { + if m.DisableOpenMetrics { t.Errorf("DisableOpenMetrics should've been false: %v", m.DisableOpenMetrics) } @@ -32,7 +32,7 @@ func TestMetricsUnmarshalCaddyfile(t *testing.T) { t.Errorf("unexpected error: %v", err) } - if m.DisableOpenMetrics != true { + if !m.DisableOpenMetrics { t.Errorf("DisableOpenMetrics should've been true: %v", m.DisableOpenMetrics) } |