Skip to content

Commit 39a8e32

Browse files
committed
fix lint
1 parent 90915a5 commit 39a8e32

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
dist/
22
.idea/
3+
.DS_Store

internal/exporter/exporter.go

+1-4
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,7 @@ func (e *Exporter) speedtest(testUUID string, ch chan<- prometheus.Metric) bool
109109
ok = downloadTest(testUUID, user, server, ch) && ok
110110
ok = uploadTest(testUUID, user, server, ch) && ok
111111

112-
if ok {
113-
return true
114-
}
115-
return false
112+
return ok
116113
}
117114

118115
func pingTest(testUUID string, user *speedtest.User, server *speedtest.Server, ch chan<- prometheus.Metric) bool {

0 commit comments

Comments
 (0)