Skip to content

Commit

Permalink
Fixup changes based on linting output (#98)
Browse files Browse the repository at this point in the history
* Removing unused variable

* Following linter output recommendations
  • Loading branch information
oldNoakes authored Oct 21, 2024
1 parent e0ac2e8 commit 8bc7cac
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions cmd/node-cert-exporter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ var BRANCH string
var GOVERSION string

var (
host string
port int
listen string
telemetryPath string
paths []string
Expand Down
4 changes: 1 addition & 3 deletions pkg/exporter/exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,7 @@ func (e *Exporter) Scrape(ch chan<- prometheus.Metric) {
glog.Warningf("%s", err)
continue
}
for _, match := range matches {
paths = append(paths, match)
}
paths = append(paths, matches...)
}

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

0 comments on commit 8bc7cac

Please sign in to comment.