Refactoring: replace sort.StringSlice with simply []string

This commit is contained in:
Andrey Smirnov
2014-02-18 14:13:18 +04:00
parent 190a81e141
commit 7864ce241b
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -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