From 51d6259470fb1d02503a2c0de2c806026d87c396 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Wed, 4 Dec 2002 14:25:49 +0000 Subject: use if_() where possible (as reported by perl_checker) --- perl-install/crypto.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'perl-install/crypto.pm') diff --git a/perl-install/crypto.pm b/perl-install/crypto.pm index c44723e14..36912dc69 100644 --- a/perl-install/crypto.pm +++ b/perl-install/crypto.pm @@ -114,8 +114,8 @@ sub getFile { my $dir = dir($host) . ($file =~ /\.rpm$/ && "/RPMS"); log::l("getting crypto file $file on directory $dir with login $mirrors{$host}[2]"); my ($ftp, $retr) = ftp::new($host, $dir, - $mirrors{$host}[2] ? $mirrors{$host}[2] : (), - $mirrors{$host}[3] ? $mirrors{$host}[3] : () + if_($mirrors{$host}[2], $mirrors{$host}[2]), + if_($mirrors{$host}[3], $mirrors{$host}[3]) ); $$retr->close if $$retr; $$retr = $ftp->retr($file) or ftp::rewindGetFile(); -- cgit v1.2.1