From fd9cefdb761966ad9f37cf39425d5b983863bbab Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 19 Mar 2025 07:05:16 -0500 Subject: switch some things to Iter() 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 --- doDirty.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'doDirty.go') diff --git a/doDirty.go b/doDirty.go index 0380bd0..bebf456 100644 --- a/doDirty.go +++ b/doDirty.go @@ -26,9 +26,7 @@ func straightCheckDirty() int { var count int // var total int // now := time.Now() - all := me.found.All() - for all.Scan() { - repo := all.Next() + for repo := range me.found.IterAll() { // total += 1 if repo.IsDirty() { count += 1 -- cgit v1.2.3