diff --git a/collector/diskstats_linux.go b/collector/diskstats_linux.go index c083a3f0..ad6ff3cb 100644 --- a/collector/diskstats_linux.go +++ b/collector/diskstats_linux.go @@ -398,15 +398,9 @@ func getUdevDeviceProperties(major, minor uint32) (udevInfo, error) { line = strings.TrimPrefix(line, udevDevicePropertyPrefix) - /* TODO: After we drop support for Go 1.17, the condition below can be simplified to: - if name, value, found := strings.Cut(line, "="); found { info[name] = value } - */ - if fields := strings.SplitN(line, "=", 2); len(fields) == 2 { - info[fields[0]] = fields[1] - } } return info, nil