simplify sort string slice method call
This commit is contained in:
parent
1c1212e6e3
commit
653229c7b5
2 changed files with 2 additions and 2 deletions
|
|
@ -155,7 +155,7 @@ func RepoNetwork(client *Client, repos []ghrepo.Interface) (RepoNetworkResult, e
|
|||
keys = append(keys, key)
|
||||
}
|
||||
// sort keys to ensure `repo_{N}` entries are processed in order
|
||||
sort.Sort(sort.StringSlice(keys))
|
||||
sort.Strings(keys)
|
||||
|
||||
// Iterate over keys of GraphQL response data and, based on its name,
|
||||
// dynamically allocate the target struct an individual message gets decoded to.
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ mainLoop:
|
|||
}
|
||||
}
|
||||
|
||||
sort.Sort(sort.StringSlice(results))
|
||||
sort.Strings(results)
|
||||
return results
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue