From 653229c7b5b564bd94d43cabef4f2dba9fd8de25 Mon Sep 17 00:00:00 2001 From: Tariq Ibrahim Date: Tue, 24 Mar 2020 22:46:13 -0700 Subject: [PATCH] simplify sort string slice method call --- api/queries_repo.go | 2 +- pkg/githubtemplate/github_template.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/queries_repo.go b/api/queries_repo.go index 9d0c4f00d..8ff9b070a 100644 --- a/api/queries_repo.go +++ b/api/queries_repo.go @@ -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. diff --git a/pkg/githubtemplate/github_template.go b/pkg/githubtemplate/github_template.go index f60878725..3aac35554 100644 --- a/pkg/githubtemplate/github_template.go +++ b/pkg/githubtemplate/github_template.go @@ -59,7 +59,7 @@ mainLoop: } } - sort.Sort(sort.StringSlice(results)) + sort.Strings(results) return results }