mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
chore(lint): lint fix in /pkg/util/iptables
This commit is contained in:
parent
bdc11c2806
commit
a4631c845e
@ -130,9 +130,8 @@ func (mfc *monitorFakeCmd) CombinedOutput() ([]byte, error) {
|
|||||||
case opListChain:
|
case opListChain:
|
||||||
if table.Has(chainName) {
|
if table.Has(chainName) {
|
||||||
return []byte{}, nil
|
return []byte{}, nil
|
||||||
} else {
|
|
||||||
return []byte{}, fmt.Errorf("no such chain %q", chainName)
|
|
||||||
}
|
}
|
||||||
|
return []byte{}, fmt.Errorf("no such chain %q", chainName)
|
||||||
case opDeleteChain:
|
case opDeleteChain:
|
||||||
table.Delete(chainName)
|
table.Delete(chainName)
|
||||||
return []byte{}, nil
|
return []byte{}, nil
|
||||||
|
Loading…
Reference in New Issue
Block a user