From c2f200920f04dba0874c054038770a91a71fbba5 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 7 Jan 2003 13:22:28 +0000 Subject: use "if any" instead of "if grep", and various other occurences of "any", "every", "partition" --- perl-install/partition_table.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install/partition_table.pm') diff --git a/perl-install/partition_table.pm b/perl-install/partition_table.pm index 39a164575..53e405da6 100644 --- a/perl-install/partition_table.pm +++ b/perl-install/partition_table.pm @@ -565,7 +565,7 @@ sub write { $_->{local_start} = $_->{start}; $_->{active} ||= 0; } - $l[0]{active} = 0x80 if !grep { $_->{active} } @l; + $l[0]{active} = 0x80 if !any { $_->{active} } @l; } #- last chance for verification, this make sure if an error is detected, -- cgit v1.2.1