From 65b270e5b6fee5be2614f8a019504c73a63bdd5b Mon Sep 17 00:00:00 2001 From: teastep Date: Sun, 20 May 2007 13:49:50 +0000 Subject: [PATCH] Make a piece of code more compact git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@6418 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb --- Shorewall-perl/Shorewall/Nat.pm | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Shorewall-perl/Shorewall/Nat.pm b/Shorewall-perl/Shorewall/Nat.pm index 188223c67..0c7b195ed 100644 --- a/Shorewall-perl/Shorewall/Nat.pm +++ b/Shorewall-perl/Shorewall/Nat.pm @@ -124,11 +124,7 @@ sub setup_one_masq($$$$$$$) # # Leading '+' # - if ( $fullinterface =~ /^\+/ ) { - $pre_nat = 1; - $fullinterface =~ s/\+//; - } - + $pre_nat = 1 if $fullinterface =~ s/^\+//; # # Parse the remaining part of the INTERFACE column #