Skip to content

Commit

Permalink
fix style
Browse files Browse the repository at this point in the history
  • Loading branch information
IllyasvielEin committed Feb 6, 2025
1 parent 83e2c51 commit bd0ba84
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions exporter/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,13 @@ func (e *Exporter) extractInfoMetrics(ch chan<- prometheus.Metric, info string,
log.Debugf("info: %s", line)

if len(line) > 0 && strings.HasPrefix(line, "# ") {

skip := false
for _, skipPrefix := range linePrefixesToSkip {
if strings.HasPrefix(line, skipPrefix) {
skip = true
break
}
}

if skip {
continue
}
Expand Down

0 comments on commit bd0ba84

Please sign in to comment.