summaryrefslogtreecommitdiff
path: root/windowFound.go
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2025-03-19 07:05:16 -0500
committerJeff Carr <[email protected]>2025-03-19 07:05:16 -0500
commitfd9cefdb761966ad9f37cf39425d5b983863bbab (patch)
tree07dbb3613995dd6c17f0254b8bd492fcf7686528 /windowFound.go
parent9aa086e7c41c9297ab7a19d4f536d5d79fffeaac (diff)
switch some things to Iter()v0.22.110
The Iter() syntax is nice and simple. In some cases, the Scan() / Next() syntax is more readable and maybe better for new programmers to understand. notsure
Diffstat (limited to 'windowFound.go')
-rw-r--r--windowFound.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/windowFound.go b/windowFound.go
index 9b085f1..c79e514 100644
--- a/windowFound.go
+++ b/windowFound.go
@@ -80,9 +80,7 @@ func (r *foundWindow) initWindow() {
}
func (r *foundWindow) listRepos() {
- all := me.found.All()
- for all.Scan() {
- repo := all.Next()
+ for repo := range me.found.IterAll() {
r.addRepo(repo)
}
}