summaryrefslogtreecommitdiff
path: root/rill.go
diff options
context:
space:
mode:
Diffstat (limited to 'rill.go')
-rw-r--r--rill.go8
1 files changed, 2 insertions, 6 deletions
diff --git a/rill.go b/rill.go
index 24829e2..7993586 100644
--- a/rill.go
+++ b/rill.go
@@ -76,9 +76,7 @@ var RillY int = 10
// todo: store x,y in forge config ? (or compute them. notsure)
func (f *Forge) RillReload() int {
var all []*gitpb.Repo
- tmp := f.Repos.All()
- for tmp.Scan() {
- repo := tmp.Next()
+ for repo := range f.Repos.IterAll() {
if !repo.IsValidDir() {
log.Printf("%s %-50s", "got an invalid repo in forgepb.RillFuncError()", repo.GetGoPath())
continue
@@ -114,9 +112,7 @@ func (f *Forge) RillReload() int {
// todo: store x,y in forge config ? (or compute them. notsure)
func (f *Forge) RillFuncError(rillf func(*gitpb.Repo) error) int {
var all []*gitpb.Repo
- tmp := f.Repos.All()
- for tmp.Scan() {
- repo := tmp.Next()
+ for repo := range f.Repos.IterAll() {
if !repo.IsValidDir() {
log.Printf("%s %-50s", "got an invalid repo in forgepb.RillFuncError()", repo.GetGoPath())
continue