rename func

This commit is contained in:
Kirill Zhuravlev 2023-02-15 18:17:45 +01:00 committed by Avelino
parent 97074a851b
commit 360d054d03
No known key found for this signature in database
GPG Key ID: B345B4D52E98180A

View File

@ -154,7 +154,7 @@ func containsOpenIssue(link string, openIssues map[string]bool) bool {
return ok return ok
} }
func getRepoStates(toRun bool, href string, client *http.Client) ([]string, bool) { func checkRepoAvailability(toRun bool, href string, client *http.Client) ([]string, bool) {
if !toRun { if !toRun {
return nil, false return nil, false
} }
@ -306,7 +306,7 @@ func TestStaleRepository(t *testing.T) {
} }
// FIXME: this is `or` expression. Probably we need `and`? // FIXME: this is `or` expression. Probably we need `and`?
warnings, isRepoAdded := getRepoStates(true, href, client) warnings, isRepoAdded := checkRepoAvailability(true, href, client)
staleRepos = append(staleRepos, warnings...) staleRepos = append(staleRepos, warnings...)
warnings, isRepoAdded = checkRepoCommitActivity(!isRepoAdded, href, client) warnings, isRepoAdded = checkRepoCommitActivity(!isRepoAdded, href, client)