diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2014-01-27 06:19:18 +0100 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2014-01-27 06:19:18 +0100 |
commit | 81c4c24c36195d3d5b6ee03d57bfdbc7a38ab9e0 (patch) | |
tree | 49cd1793276e97c95e123de436e9700fcd0ad945 | |
parent | f96ef1a39ea6510f4ab48fb49a1e0de97ed561ec (diff) | |
download | drakx-net-81c4c24c36195d3d5b6ee03d57bfdbc7a38ab9e0.tar drakx-net-81c4c24c36195d3d5b6ee03d57bfdbc7a38ab9e0.tar.gz drakx-net-81c4c24c36195d3d5b6ee03d57bfdbc7a38ab9e0.tar.bz2 drakx-net-81c4c24c36195d3d5b6ee03d57bfdbc7a38ab9e0.tar.xz drakx-net-81c4c24c36195d3d5b6ee03d57bfdbc7a38ab9e0.zip |
simplify: kill useless variable
-rw-r--r-- | lib/network/shorewall.pm | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/network/shorewall.pm b/lib/network/shorewall.pm index 1c8b4f5..13d43ea 100644 --- a/lib/network/shorewall.pm +++ b/lib/network/shorewall.pm @@ -37,9 +37,7 @@ sub set_config_file { sub get_config_file { my ($file, $o_ver) = @_; - my $ver = ''; - $ver = $o_ver if $o_ver; - map { [ split ' ' ] } grep { !/^#/ } cat_("$::prefix${shorewall_root}${ver}/$file"); + map { [ split ' ' ] } grep { !/^#/ } cat_("$::prefix${shorewall_root}${o_ver}/$file"); } # Note: Called from drakguard and drakfirewall.pm... |