summaryrefslogtreecommitdiff
path: root/modules/metrics
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2022-08-16 10:03:19 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2022-08-16 10:03:19 -0600
commita944de4ab7acfdd114d11a2ca0d267110ba9c152 (patch)
treec470ee2868d1b9465387bd29f06bf2ce0370e7af /modules/metrics
parenta479943acd70068c4b80d3a8f4b8dd7ab93ca2ba (diff)
Clean up metrics test code
No need to use != for booleans
Diffstat (limited to 'modules/metrics')
-rw-r--r--modules/metrics/metrics_test.go4
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)
}