mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 03:57:41 +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
|
start := i + 2
|
||||||
save = save[start:]
|
save = save[start:]
|
||||||
end := bytes.Index(save, []byte(" "))
|
end := bytes.Index(save, []byte(" "))
|
||||||
if i == -1 {
|
if end == -1 {
|
||||||
// shouldn't happen, but...
|
// shouldn't happen, but...
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user