working on tests now

This commit is contained in:
zach rice committed 2019-03-28 13:13:26 -05:00
1 parent ac14d347de
commit ae4542abf0
8 files changed
+951 -43

No files matched your search

+4 -2
View File
@@ -57,13 +57,15 @@ func auditGitlabRepos() ([]Leak, error) {
}
if err != nil {
log.Fatal("error listing projects: ", err) // exit when can't make API call
// exit when can't make API call
log.Fatal("error listing projects: ", err)
}
repos = append(repos, ps...)
if page >= resp.TotalPages {
break // exit when we've seen all pages
// exit when we've seen all pages
break
}
page = resp.NextPage