Fix QF1004: could use strings.ReplaceAll instead (staticcheck)

This commit is contained in:
Holger Obermaier
2026-02-04 10:32:53 +01:00
parent dddae13c7a
commit 3c03f4ac96
2 changed files with 3 additions and 3 deletions

View File

@@ -93,7 +93,7 @@ mountLoop:
continue
}
mountPath := strings.Replace(linefields[1], `\040`, " ", -1)
mountPath := strings.ReplaceAll(linefields[1], `\040`, " ")
for _, excl := range m.config.ExcludeMounts {
if strings.Contains(mountPath, excl) {