Fix staticcheck warnings (#66)

This commit is contained in:
Thomas Gruber
2022-03-15 16:38:20 +01:00
committed by GitHub
parent 57629a2e0a
commit c182d295f4
8 changed files with 23 additions and 24 deletions

View File

@@ -61,7 +61,7 @@ func (m *CustomCmdCollector) Init(config json.RawMessage) error {
}
}
if len(m.files) == 0 && len(m.commands) == 0 {
return errors.New("No metrics to collect")
return errors.New("no metrics to collect")
}
m.handler = influx.NewMetricHandler()
m.parser = influx.NewParser(m.handler)