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

@@ -54,7 +54,7 @@ func (m *IpmiCollector) Init(config json.RawMessage) error {
m.ipmisensors = p
}
if len(m.ipmitool) == 0 && len(m.ipmisensors) == 0 {
return errors.New("No IPMI reader found")
return errors.New("no IPMI reader found")
}
m.init = true
return nil