From 06a83df533244dc2b3b8adfc1bf0608d3753c1d9 Mon Sep 17 00:00:00 2001 From: Kevin Krakauer Date: Mon, 10 Jun 2019 12:43:54 -0700 Subject: Address more comments. Change-Id: I83ae1079f3dcba6b018f59ab7898decab5c211d2 --- pkg/tcpip/iptables/iptables.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'pkg/tcpip') diff --git a/pkg/tcpip/iptables/iptables.go b/pkg/tcpip/iptables/iptables.go index bd54ef5a6..f1e1d1fad 100644 --- a/pkg/tcpip/iptables/iptables.go +++ b/pkg/tcpip/iptables/iptables.go @@ -33,7 +33,7 @@ const ( // DefaultTables returns a default set of tables. Each chain is set to accept // all packets. func DefaultTables() *IPTables { - tables := IPTables{ + return &IPTables{ Tables: map[string]Table{ tablenameNat: Table{ BuiltinChains: map[Hook]Chain{ @@ -67,8 +67,6 @@ func DefaultTables() *IPTables { Output: []string{tablenameMangle, tablenameNat}, }, } - - return &tables } func unconditionalAcceptChain(name string) Chain { -- cgit v1.2.3