mirror of
https://github.com/aptly-dev/aptly.git
synced 2026-06-06 05:30:57 +00:00
Refactoring: replace sort.StringSlice with simply []string
This commit is contained in:
+1
-1
@@ -66,7 +66,7 @@ func StrSliceHasItem(s []string, item string) bool {
|
||||
|
||||
// StrMapSortedKeys returns keys of map[string]string sorted
|
||||
func StrMapSortedKeys(m map[string]string) []string {
|
||||
keys := make(sort.StringSlice, len(m))
|
||||
keys := make([]string, len(m))
|
||||
i := 0
|
||||
for k := range m {
|
||||
keys[i] = k
|
||||
|
||||
Reference in New Issue
Block a user