Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pkg/manifest/mantaray/walker.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package mantaray

import (
"context"
"sort"
"slices"
)

// WalkNodeFunc is the type of the function called for each node visited
Expand Down Expand Up @@ -34,7 +34,7 @@ func walkNode(ctx context.Context, path []byte, l Loader, n *Node, walkFn WalkNo
for k := range n.forks {
keys = append(keys, k)
}
sort.Slice(keys, func(i, j int) bool { return keys[i] < keys[j] })
slices.Sort(keys)

for _, k := range keys {
v := n.forks[k]
Expand Down
Loading