simplify sort string slice method call

This commit is contained in:
Tariq Ibrahim 2020-03-24 22:46:13 -07:00
parent 1c1212e6e3
commit 653229c7b5
No known key found for this signature in database
GPG key ID: DFC94E4A008B908A
2 changed files with 2 additions and 2 deletions

View file

@ -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.

View file

@ -59,7 +59,7 @@ mainLoop:
}
}
sort.Sort(sort.StringSlice(results))
sort.Strings(results)
return results
}