diff options
| author | Jeff Carr <[email protected]> | 2025-03-19 06:40:27 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-03-19 06:40:27 -0500 |
| commit | 68127e4356d00604b454bfee002a7fda233fb773 (patch) | |
| tree | 1f579f9eaaca0c0081a56cd33dae2d3e195966bd /rill.go | |
| parent | b4a15ef947c1aabb78bae57bbd9eabbec80a43c8 (diff) | |
now using the awesome golang 1.24 'iter'v0.0.101
Diffstat (limited to 'rill.go')
| -rw-r--r-- | rill.go | 8 |
1 files changed, 2 insertions, 6 deletions
@@ -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 |
