Skip to content

Commit

Permalink
Rename the helper function name to camel-case
Browse files Browse the repository at this point in the history
  • Loading branch information
seachicken committed Jan 30, 2022
1 parent eb8fee0 commit a73502a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion poi.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func GetBranches(conn Connection) ([]Branch, error) {
}

prs := []PullRequest{}
for _, queryHashes := range GetQueryHashes(branches) {
for _, queryHashes := range getQueryHashes(branches) {
json, err := conn.GetPullRequests(hostname, repoNames, queryHashes)
if err != nil {
return nil, err
Expand Down
2 changes: 1 addition & 1 deletion querygen.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strings"
)

func GetQueryHashes(branches []Branch) []string {
func getQueryHashes(branches []Branch) []string {
results := []string{}

var hashes strings.Builder
Expand Down
2 changes: 1 addition & 1 deletion querygen_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func Test_GetQueryHashes(t *testing.T) {
"hash:ac3478d69a3c81fa62e60f5c3696165a4e5e6ac4 ",
"hash:c1dfd96eea8cc2b62785275bca38ac261256e278",
},
GetQueryHashes([]Branch{
getQueryHashes([]Branch{
{false, "main",
[]string{},
[]PullRequest{}, Unknown,
Expand Down

0 comments on commit a73502a

Please sign in to comment.