all: Run modernize -fix ./...

Closes #14107
This commit is contained in:
Bjørn Erik Pedersen
2025-11-05 20:41:17 +01:00
parent 264022a75a
commit 04650ce778
122 changed files with 275 additions and 351 deletions
+3 -5
View File
@@ -22,6 +22,7 @@ import (
"os"
"path/filepath"
"regexp"
"slices"
"strings"
"time"
@@ -148,11 +149,8 @@ func filterDuplicateMounts(mounts []Mount) []Mount {
var x []Mount
for _, m1 := range mounts {
var found bool
for _, m2 := range x {
if m1.Equal(m2) {
found = true
break
}
if slices.ContainsFunc(x, m1.Equal) {
found = true
}
if !found {
x = append(x, m1)