mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-15 20:44:01 +02:00
all: Run modernize -fix ./...
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user