From d7d79789800c9d64ade1bd5370c03763f97bc891 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Fri, 13 Feb 2004 17:42:16 +0000 Subject: in boolean context, "any" is better than "find" --- perl-install/install2.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install/install2.pm') diff --git a/perl-install/install2.pm b/perl-install/install2.pm index bfd6b5229..2acfe1b0d 100644 --- a/perl-install/install2.pm +++ b/perl-install/install2.pm @@ -191,7 +191,7 @@ sub formatPartitions { any::rotate_logs($o->{prefix}); - if (find { $_->{usb_media_type} && find { $_->{mntpoint} } partition_table::get_normal_parts($_) } @{$o->{all_hds}{hds}}) { + if (any { $_->{usb_media_type} && any { $_->{mntpoint} } partition_table::get_normal_parts($_) } @{$o->{all_hds}{hds}}) { log::l("we use a usb-storage based drive, so keep it as a normal scsi_hostadapter"); } else { log::l("we don't need usb-storage for booting system, rely on hotplug"); -- cgit v1.2.1