Skip to content

Commit a69ef28

Browse files
riccardotornesellofra98
authored andcommitted
refactor: remove useless chain type comparison
Co-authored-by: Francesco Torta <[email protected]>
1 parent ffcbaaa commit a69ef28

File tree

1 file changed

+1
-1
lines changed
  • pkg/liqo-controller-manager/networking/internal-network/gw-masq-bypass

1 file changed

+1
-1
lines changed

pkg/liqo-controller-manager/networking/internal-network/gw-masq-bypass/leftovers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ func (r *PodReconciler) processFirewallConfiguration(ctx context.Context, fwcfgl
8888

8989
chain := fwcfglist.Items[i].Spec.Table.Chains[0]
9090

91-
if chain.Type == "" || chain.Type != firewall.ChainTypeNAT {
91+
if chain.Type != firewall.ChainTypeNAT {
9292
return fmt.Errorf("firewall configuration table chain should be of type NAT, not %s", chain.Type)
9393
}
9494

0 commit comments

Comments
 (0)