lint: make lint happy

This commit is contained in:
Bryan Boreham
2019-09-18 14:42:47 +00:00
parent 11e76f1740
commit a7d3cbedb5
2 changed files with 3 additions and 1 deletions

View File

@@ -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
}

View File

@@ -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 + ":"
}
}