repoDescriptor->repoInfo

This commit is contained in:
zach rice committed 2019-03-28 08:06:38 -05:00
1 parent e79ffc6ae8
commit c2143c5843
9 files changed
+23 -28

No files matched your search

+3 -3
View File
@@ -154,10 +154,10 @@ func addLeak(leaks []Leak, line string, offender string, leakType string, diff g
// discoverRepos walks all the children of `path`. If a child directory
// contain a .git subdirectory then that repo will be added to the list of repos returned
func discoverRepos(ownerPath string) ([]*RepoDescriptor, error) {
func discoverRepos(ownerPath string) ([]*RepoInfo, error) {
var (
err error
repoDs []*RepoDescriptor
repoDs []*RepoInfo
)
files, err := ioutil.ReadDir(ownerPath)
if err != nil {
@@ -166,7 +166,7 @@ func discoverRepos(ownerPath string) ([]*RepoDescriptor, error) {
for _, f := range files {
repoPath := path.Join(ownerPath, f.Name())
if f.IsDir() && containsGit(repoPath) {
repoDs = append(repoDs, &RepoDescriptor{
repoDs = append(repoDs, &RepoInfo{
name: f.Name(),
path: repoPath,
})