Merge pull request #122093 from npolshakova/small-fix-getchainsfromtable

Fix error check in GetChainsFromTables
This commit is contained in:
Kubernetes Prow Robot
2023-12-14 06:17:31 +01:00
committed by GitHub

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
}