Skip to content

Commit

Permalink
fixup! usage: refactor to do levels earlier
Browse files Browse the repository at this point in the history
  • Loading branch information
mstoykov committed Sep 5, 2024
1 parent 69845d0 commit c155d50
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions usage/usage.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,3 @@ func deepClone(m map[string]any) map[string]any {
}
return result
}

// TODO: replace with map.Keys from go 1.23 after that is the minimal version
func mapKeys(m map[string]any) []string {
keys := make([]string, 0, len(m))
for k := range m {
keys = append(keys, k)
}
return keys
}

0 comments on commit c155d50

Please sign in to comment.