mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-08 03:33:56 +00:00
fix error check
This commit is contained in:
parent
022d50fe3a
commit
a82ee6d416
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user