Skip to content

Commit 653229c

Browse files
committed
simplify sort string slice method call
1 parent 1c1212e commit 653229c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

api/queries_repo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ func RepoNetwork(client *Client, repos []ghrepo.Interface) (RepoNetworkResult, e
155155
keys = append(keys, key)
156156
}
157157
// sort keys to ensure `repo_{N}` entries are processed in order
158-
sort.Sort(sort.StringSlice(keys))
158+
sort.Strings(keys)
159159

160160
// Iterate over keys of GraphQL response data and, based on its name,
161161
// dynamically allocate the target struct an individual message gets decoded to.

pkg/githubtemplate/github_template.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ mainLoop:
5959
}
6060
}
6161

62-
sort.Sort(sort.StringSlice(results))
62+
sort.Strings(results)
6363
return results
6464
}
6565

0 commit comments

Comments
 (0)