all: Run modernize -fix ./...

This commit is contained in:
Bjørn Erik Pedersen
2025-02-26 10:15:04 +01:00
parent b7ae24b9c2
commit 521911a576
141 changed files with 302 additions and 354 deletions

View File

@@ -14,6 +14,7 @@
package navigation
import (
"slices"
"sync"
)
@@ -84,7 +85,7 @@ func (c *menuCache) getP(key string, apply func(m *Menu), menuLists ...Menu) (Me
}
m := menuLists[0]
menuCopy := append(Menu(nil), m...)
menuCopy := slices.Clone(m)
if apply != nil {
apply(&menuCopy)