Skip to content

Commit 8bc7cac

Browse files
authored
Fixup changes based on linting output (#98)
* Removing unused variable * Following linter output recommendations
1 parent e0ac2e8 commit 8bc7cac

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

cmd/node-cert-exporter/main.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ var BRANCH string
2727
var GOVERSION string
2828

2929
var (
30-
host string
31-
port int
3230
listen string
3331
telemetryPath string
3432
paths []string

pkg/exporter/exporter.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,7 @@ func (e *Exporter) Scrape(ch chan<- prometheus.Metric) {
132132
glog.Warningf("%s", err)
133133
continue
134134
}
135-
for _, match := range matches {
136-
paths = append(paths, match)
137-
}
135+
paths = append(paths, matches...)
138136
}
139137

140138
// Read files defined in paths from fs and try to parse a x509 certificate from them.

0 commit comments

Comments
 (0)