From a4631c845e798820de89d0f3f4012ff0d34c52aa Mon Sep 17 00:00:00 2001 From: Karthikeyan Govindaraj <30545166+gkarthiks@users.noreply.github.com> Date: Mon, 18 Nov 2019 23:44:49 -0800 Subject: [PATCH] chore(lint): lint fix in /pkg/util/iptables --- pkg/util/iptables/monitor_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/util/iptables/monitor_test.go b/pkg/util/iptables/monitor_test.go index 7f4d4176dc8..37e9ddcd3ad 100644 --- a/pkg/util/iptables/monitor_test.go +++ b/pkg/util/iptables/monitor_test.go @@ -130,9 +130,8 @@ func (mfc *monitorFakeCmd) CombinedOutput() ([]byte, error) { case opListChain: if table.Has(chainName) { return []byte{}, nil - } else { - return []byte{}, fmt.Errorf("no such chain %q", chainName) } + return []byte{}, fmt.Errorf("no such chain %q", chainName) case opDeleteChain: table.Delete(chainName) return []byte{}, nil