diff options
| author | Jeff Carr <[email protected]> | 2025-02-12 17:02:47 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-02-12 17:02:47 -0600 |
| commit | 225cd84f68b36f8fa7017981766b73fc2ca187c9 (patch) | |
| tree | 1d51085b0be3cb6d93122bbe8b3cec340d38d112 /releaseBox.go | |
| parent | 248642b681daed3f6788526c3186bd9c20ffc410 (diff) | |
set MAX loop to Repos.Len()
Diffstat (limited to 'releaseBox.go')
| -rw-r--r-- | releaseBox.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/releaseBox.go b/releaseBox.go index ab2bae7..5e25b8f 100644 --- a/releaseBox.go +++ b/releaseBox.go @@ -127,7 +127,10 @@ func createReleaseBox(box *gui.Node) { break } count += 1 - if count > 60 { + // never allow a loop longer than all the known repos + // this probably doesn't matter, but often this code is wrong + if count > me.forge.Repos.Len() { + // so this is a safety check. never remove this check. break } } |
