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
commit d43e9a2654
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
}