set MAX loop to Repos.Len()

This commit is contained in:
Jeff Carr 2025-02-12 17:02:47 -06:00
parent 248642b681
commit 225cd84f68
1 changed files with 4 additions and 1 deletions

View File

@ -127,7 +127,10 @@ func createReleaseBox(box *gui.Node) {
break break
} }
count += 1 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 break
} }
} }