chore(lint): lint fix in /pkg/util/iptables

This commit is contained in:
Karthikeyan Govindaraj 2019-11-18 23:44:49 -08:00 committed by GitHub
parent bdc11c2806
commit a4631c845e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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