From df74e103d8de6d7cc45cc3e2a99f4b9c8fff6085 Mon Sep 17 00:00:00 2001 From: "Thierry.Vignaud" Date: Wed, 28 May 2014 22:37:23 +0200 Subject: simplify using member() --- perl-install/mirror.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'perl-install/mirror.pm') diff --git a/perl-install/mirror.pm b/perl-install/mirror.pm index f0a54f4d1..1e959f9ac 100644 --- a/perl-install/mirror.pm +++ b/perl-install/mirror.pm @@ -106,7 +106,7 @@ sub list { my @mirrors = grep { ($_->{method}, $_->{host}, $_->{dir}) = $_->{url} =~ m!^(ftp|http)://(.*?)(/.*)!; - $_->{method} && ($type eq 'all' || $_->{type} eq $type); + $_->{method} && (member($type, 'all', $_->{type})); } @mirrors_raw or log::explanations("no mirrors of type $type"), return; @mirrors && \@mirrors; -- cgit v1.2.1