src/go/plugin/go.d/modules/hddtemp/collect.go
Method HddTemp.collect
has 54 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func (h *HddTemp) collect() (map[string]int64, error) {
conn := h.newHddTempConn(h.Config)
if err := conn.connect(); err != nil {
return nil, err