src/go/collectors/go.d.plugin/modules/zfspool/collect.go
Function parseZpoolListOutput
has 5 return statements (exceeds 4 allowed). Open
Open
func parseZpoolListOutput(bs []byte) ([]zpoolStats, error) {
var lines []string
sc := bufio.NewScanner(bytes.NewReader(bs))
for sc.Scan() {
if text := strings.TrimSpace(sc.Text()); text != "" {