From 63396e61f2e1f1691f6e4003de053a0e5a64f576 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Sun, 19 Jan 2014 02:32:10 +0100 Subject: perl_checker cleanups --- perl-install/install/steps_gtk.pm | 2 +- perl-install/install/steps_interactive.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'perl-install') diff --git a/perl-install/install/steps_gtk.pm b/perl-install/install/steps_gtk.pm index 166bb7770..21f071adb 100644 --- a/perl-install/install/steps_gtk.pm +++ b/perl-install/install/steps_gtk.pm @@ -260,7 +260,7 @@ sub reallyChooseDesktop { tip => $tips{$val->[0]}, toggled => sub { $choice = $val if $_[0]->get_active }, active => $choice == $val, - $prev ? (join => $prev) : ()); + if_($prev, join => $prev)); $prev->signal_connect(key_press_event => sub { my (undef, $event) = @_; if (!$event || ($event->keyval & 0x7f) == 0xd) { diff --git a/perl-install/install/steps_interactive.pm b/perl-install/install/steps_interactive.pm index 5da4fa03d..be3d6c64c 100644 --- a/perl-install/install/steps_interactive.pm +++ b/perl-install/install/steps_interactive.pm @@ -977,7 +977,7 @@ sub summary { group => N("Network & Internet"), label => N("Network"), val => sub { $o->{net}{type} }, - format => sub { s/.*:://; $_ }, + format => sub { $_[0] =~ s/.*:://; $_[0] }, clicked => sub { require network::netconnect; network::netconnect::real_main($o->{net}, $o, $o->{modules_conf}); -- cgit v1.2.1