fix error check

This commit is contained in:
npolshakova 2023-11-28 12:49:32 -05:00
parent 022d50fe3a
commit a82ee6d416

View File

@ -40,7 +40,7 @@ func GetChainsFromTable(save []byte) map[Chain]struct{} {
start := i + 2
save = save[start:]
end := bytes.Index(save, []byte(" "))
if i == -1 {
if end == -1 {
// shouldn't happen, but...
break
}