diff options
| author | Jeff Carr <[email protected]> | 2025-03-19 07:05:16 -0500 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-03-19 07:05:16 -0500 |
| commit | fd9cefdb761966ad9f37cf39425d5b983863bbab (patch) | |
| tree | 07dbb3613995dd6c17f0254b8bd492fcf7686528 /doDirty.go | |
| parent | 9aa086e7c41c9297ab7a19d4f536d5d79fffeaac (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 'doDirty.go')
| -rw-r--r-- | doDirty.go | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -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 |
