src/go/plugin/go.d/modules/sensors/collect_sysfs.go
Method Sensors.collectSysfs
has 57 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (s *Sensors) collectSysfs() (map[string]int64, error) {
if s.sc == nil {
return nil, errors.New("sysfs scanner is not initialized")
}
Method Sensors.collectSysfs
has 5 return statements (exceeds 4 allowed). Open
Open
func (s *Sensors) collectSysfs() (map[string]int64, error) {
if s.sc == nil {
return nil, errors.New("sysfs scanner is not initialized")
}