Run go fix

This commit is contained in:
2026-02-17 21:04:17 +01:00
parent 9af44779aa
commit 6035b62734
12 changed files with 56 additions and 59 deletions

View File

@@ -16,6 +16,7 @@ import (
"os"
"path"
"path/filepath"
"slices"
"strconv"
"strings"
"sync"
@@ -692,13 +693,7 @@ func (fsa *FsArchive) StoreClusterCfg(name string, config *schema.Cluster) error
}
// Update clusters list if new
found := false
for _, c := range fsa.clusters {
if c == name {
found = true
break
}
}
found := slices.Contains(fsa.clusters, name)
if !found {
fsa.clusters = append(fsa.clusters, name)
}