Update bindv2.go

This commit is contained in:
0xFloki 2025-12-19 19:55:46 +01:00 committed by GitHub
parent 2e5cd21edf
commit 34d9478508
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -276,7 +276,7 @@ func parseLibraryDeps(unlinkedCode string) (res []string) {
// onItem on each. If the callback returns an error, iteration is halted and
// the error is returned from iterSorted.
func iterSorted[V any](inp map[string]V, onItem func(string, V) error) error {
var sortedKeys []string
sortedKeys := make([]string, 0, len(inp))
for key := range inp {
sortedKeys = append(sortedKeys, key)
}