Remove stray error check

This commit is contained in:
Thomas Roehl 2024-04-10 19:57:46 +02:00
parent 6aada60d97
commit b6c4769db3

View File

@ -99,10 +99,7 @@ func (m *CustomCmdCollector) Read(interval time.Duration, output chan lp.CCMetri
continue continue
} }
y := lp.FromInfluxMetric(c) output <- lp.FromInfluxMetric(c)
if err == nil {
output <- y
}
} }
} }
for _, file := range m.files { for _, file := range m.files {
@ -121,10 +118,7 @@ func (m *CustomCmdCollector) Read(interval time.Duration, output chan lp.CCMetri
if skip { if skip {
continue continue
} }
y := lp.FromInfluxMetric(f) output <- lp.FromInfluxMetric(f)
if err == nil {
output <- y
}
} }
} }
} }