From a7d3cbedb56aedf2e856b8c5a0fd5759ca139036 Mon Sep 17 00:00:00 2001 From: Bryan Boreham Date: Wed, 18 Sep 2019 14:42:47 +0000 Subject: [PATCH] lint: make lint happy --- app/collector.go | 1 + report/report.go | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/collector.go b/app/collector.go index e76df513d..6481b4ef5 100644 --- a/app/collector.go +++ b/app/collector.go @@ -255,6 +255,7 @@ func (c StaticCollector) HasHistoricReports() bool { return false } +// AdminSummary implements Reporter func (c StaticCollector) AdminSummary(ctx context.Context, timestamp time.Time) (string, error) { return "not implemented", nil } diff --git a/report/report.go b/report/report.go index 3c2f788d0..be4bf7ead 100644 --- a/report/report.go +++ b/report/report.go @@ -559,10 +559,11 @@ func (r Report) upgradeDNSRecords() Report { return r } +// Summary returns a human-readable string summarising the contents, for diagnostic purposes func (r Report) Summary() string { ret := "" if len(r.Host.Nodes) == 1 { - for k, _ := range r.Host.Nodes { + for k := range r.Host.Nodes { ret = k + ":" } }