diff options
| author | Jeff Carr <[email protected]> | 2024-12-11 19:32:04 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-11 19:32:04 -0600 |
| commit | ada387b966b901055e87e5b7d7d4902246c4e69e (patch) | |
| tree | 57a3ad70fbf6b91d06830d8efabe0f572d808855 /findRepos.go | |
| parent | 353290ecb1ba1f84e55cbcc23233055a26f7208f (diff) | |
'all' seems more sensible than 'loop'
Diffstat (limited to 'findRepos.go')
| -rw-r--r-- | findRepos.go | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/findRepos.go b/findRepos.go index 18ddd03..3562802 100644 --- a/findRepos.go +++ b/findRepos.go @@ -35,9 +35,9 @@ func findRepos() bool { } func findPrivate() { - repos := me.forge.Repos.SortByGoPath() - for repos.Scan() { - repo := repos.Next() + all := me.forge.Repos.SortByGoPath() + for all.Scan() { + repo := all.Next() if me.forge.Config.IsPrivate(repo.GoPath) { me.found.AppendUniqueGoPath(repo) } @@ -47,9 +47,9 @@ func findPrivate() { // finds repos that are writable func findMine() { // log.Printf("get mine %s\n", me.forge.GetGoSrc()) - repos := me.forge.Repos.SortByGoPath() - for repos.Scan() { - repo := repos.Next() + all := me.forge.Repos.SortByGoPath() + for all.Scan() { + repo := all.Next() if me.forge.Config.IsWritable(repo.GoPath) { me.found.AppendUniqueGoPath(repo) } @@ -59,9 +59,9 @@ func findMine() { // finds repos that are writable func findFavorites() { // log.Printf("get favorites %s\n", me.forge.GetGoSrc()) - repos := me.forge.Repos.SortByGoPath() - for repos.Scan() { - repo := repos.Next() + all := me.forge.Repos.SortByGoPath() + for all.Scan() { + repo := all.Next() if me.forge.Config.IsFavorite(repo.GoPath) { me.found.AppendUniqueGoPath(repo) } @@ -70,9 +70,9 @@ func findFavorites() { func findAll() { var configsave bool - repos := me.forge.Repos.SortByGoPath() - for repos.Scan() { - repo := repos.Next() + all := me.forge.Repos.SortByGoPath() + for all.Scan() { + repo := all.Next() if me.forge.Config.IsReadOnly(repo.GoPath) && !argv.FindReadOnly { if repo.ReadOnly { continue |
