From 39a8e322e82e1322e8cd81790566291e5c0ca4f9 Mon Sep 17 00:00:00 2001 From: dwillcocks Date: Thu, 29 Apr 2021 19:54:36 +0100 Subject: [PATCH] fix lint --- .gitignore | 1 + internal/exporter/exporter.go | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index 5cb6357..8e2d837 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ dist/ .idea/ +.DS_Store diff --git a/internal/exporter/exporter.go b/internal/exporter/exporter.go index 85d4636..e6bb646 100644 --- a/internal/exporter/exporter.go +++ b/internal/exporter/exporter.go @@ -109,10 +109,7 @@ func (e *Exporter) speedtest(testUUID string, ch chan<- prometheus.Metric) bool ok = downloadTest(testUUID, user, server, ch) && ok ok = uploadTest(testUUID, user, server, ch) && ok - if ok { - return true - } - return false + return ok } func pingTest(testUUID string, user *speedtest.User, server *speedtest.Server, ch chan<- prometheus.Metric) bool {