set MAX loop to Repos.Len()
This commit is contained in:
parent
248642b681
commit
225cd84f68
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue