From b3111e7e9c262d8c71e23a6dc78d5d7a888dacc3 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 20 Mar 2012 19:52:33 +0000 Subject: perl_checker cleanups --- lib/network/netconnect.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/network/netconnect.pm') diff --git a/lib/network/netconnect.pm b/lib/network/netconnect.pm index abe94c7..adb048a 100644 --- a/lib/network/netconnect.pm +++ b/lib/network/netconnect.pm @@ -124,7 +124,7 @@ sub real_main { welcome => { pre => sub { undef $net->{type} }, if_(!$::isInstall, no_back => 1), - name => N("Choose the connection you want to configure") . if_($net->{PROFILE} && network::network::netprofile_count() > 0, "\n".N("Those settings will be saved for the network profile %s", $net->{PROFILE}) ), + name => N("Choose the connection you want to configure") . if_($net->{PROFILE} && network::network::netprofile_count() > 0, "\n" . N("Those settings will be saved for the network profile %s", $net->{PROFILE})), if_(!$::isInstall, interactive_help_id => 'configureNetwork'), data => [ { list => [ network::connection::get_types ], type => 'list', val => \$net->{type}, format => sub { $_[0] && $_[0]->get_type_description }, @@ -148,7 +148,7 @@ sub real_main { select_connection => { name => sub { $net->{type}->get_type_name . "\n\n" . N("Select the network interface to configure:") }, data => [ { val => \$connection, type => 'list', list => \@connections_list, - format => sub { $_[0] && N("%s: %s", $_[0]->get_interface, $_[0]->get_description) }, allow_empty_list => !text2bool($global_settings{AUTOMATIC_IFACE_CHOICE})} ], + format => sub { $_[0] && N("%s: %s", $_[0]->get_interface, $_[0]->get_description) }, allow_empty_list => !text2bool($global_settings{AUTOMATIC_IFACE_CHOICE}) } ], complete => sub { $connection->setup_thirdparty($in) or return 1; $connection->prepare_device; @@ -322,7 +322,7 @@ If you do not know it, keep the preselected protocol.") }, sleep 1; } } - $success = $connection->get_status(); + $success = $connection->get_status; # try to resolve the network address for some time my $timeout = 3; while ($timeout--) { -- cgit v1.2.1