Skip to content

Commit f9877ae

Browse files
committed
Following linter output recommendations
1 parent 50ee378 commit f9877ae

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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)