Remove apparently useless Component::BUILDARGS conditional.
Florian Ragwitz [Mon, 25 Jan 2010 19:00:17 +0000 (19:00 +0000)]
lib/Catalyst/Component.pm

index c4717b4..a279cd7 100644 (file)
@@ -84,8 +84,6 @@ sub BUILDARGS {
         } elsif (Class::MOP::is_class_loaded($_[0]) &&
                 $_[0]->isa('Catalyst') && ref($_[1]) eq 'HASH') {
             $args = $_[1];
-        } elsif ($_[0] == $_[1]) {
-            $args = $_[1];
         } else {
             $args = +{ @_ };
         }