aboutsummaryrefslogtreecommitdiff
path: root/plugin/test
diff options
context:
space:
mode:
authorGravatar Ondřej Benkovský <ondrej.benkovsky@jamf.com> 2022-07-10 20:06:33 +0200
committerGravatar GitHub <noreply@github.com> 2022-07-10 11:06:33 -0700
commitc2dbb7141a7c95aa521a41b27bed3af25de8f546 (patch)
tree3af5d63a0dccaa769507e34a32b6378ccef880c4 /plugin/test
parentabc5ac8017b0f434b5845321fb1f405ded7774d4 (diff)
downloadcoredns-c2dbb7141a7c95aa521a41b27bed3af25de8f546.tar.gz
coredns-c2dbb7141a7c95aa521a41b27bed3af25de8f546.tar.zst
coredns-c2dbb7141a7c95aa521a41b27bed3af25de8f546.zip
add golangci-lint linter (#5499)
Diffstat (limited to 'plugin/test')
-rw-r--r--plugin/test/helpers.go1
-rw-r--r--plugin/test/scrape.go2
2 files changed, 0 insertions, 3 deletions
diff --git a/plugin/test/helpers.go b/plugin/test/helpers.go
index 99271df1e..8145b605a 100644
--- a/plugin/test/helpers.go
+++ b/plugin/test/helpers.go
@@ -285,7 +285,6 @@ func SortAndCheck(resp *dns.Msg, tc Case) error {
}
if err := Section(tc, Ns, resp.Ns); err != nil {
return err
-
}
return Section(tc, Extra, resp.Extra)
}
diff --git a/plugin/test/scrape.go b/plugin/test/scrape.go
index 3fb6b26d5..7847e39d4 100644
--- a/plugin/test/scrape.go
+++ b/plugin/test/scrape.go
@@ -80,7 +80,6 @@ func Scrape(url string) []*MetricFamily {
// ScrapeMetricAsInt provides a sum of all metrics collected for the name and label provided.
// if the metric is not a numeric value, it will be counted a 0.
func ScrapeMetricAsInt(addr string, name string, label string, nometricvalue int) int {
-
valueToInt := func(m metric) int {
v := m.Value
r, err := strconv.Atoi(v)
@@ -141,7 +140,6 @@ func MetricValueLabel(name, label string, mfs []*MetricFamily) (string, map[stri
return m.(metric).Value, m.(metric).Labels
}
}
-
}
}
}