From: Florian Ragwitz Date: Mon, 3 May 2010 00:51:43 +0000 (+0000) Subject: Remove useless conditional. X-Git-Tag: 5.80023~5 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=7a1a325a72e9a197866000cfab091a4f660ce348 Remove useless conditional. --- diff --git a/lib/Catalyst.pm b/lib/Catalyst.pm index 9f2f836..42dabb8 100644 --- a/lib/Catalyst.pm +++ b/lib/Catalyst.pm @@ -2811,8 +2811,8 @@ the plugin name does not begin with C. } @{ $plugins }; for my $plugin ( reverse @plugins ) { - Class::MOP::load_class($plugin->[0]); # pass along $plugin->[1] as well once cmop supports it + Class::MOP::load_class($plugin->[0]); my $meta = find_meta($plugin->[0]); next if $meta && $meta->isa('Moose::Meta::Role'); @@ -2820,9 +2820,9 @@ the plugin name does not begin with C. } my @roles = - map { $_->[0]->name, $_->[1] } - grep { $_->[0] && blessed($_->[0]) && $_->[0]->isa('Moose::Meta::Role') } - map { [find_meta($_->[0]), $_->[1]] } + map { $_->[0]->name, $_->[1] } + grep { blessed($_->[0]) && $_->[0]->isa('Moose::Meta::Role') } + map { [find_meta($_->[0]), $_->[1]] } @plugins; Moose::Util::apply_all_roles(