From: Jesse Luehrs Date: Fri, 25 Jun 2010 06:06:53 +0000 (-0500) Subject: remove useless test X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=66afce822765d763851fb38dc69d5ebaf836b729;p=gitmo%2FMoose.git remove useless test --- diff --git a/lib/Moose/Meta/Attribute.pm b/lib/Moose/Meta/Attribute.pm index bbf38e7..b8ca6ff 100644 --- a/lib/Moose/Meta/Attribute.pm +++ b/lib/Moose/Meta/Attribute.pm @@ -379,7 +379,7 @@ sub initialize_from_params { return unless defined $init_arg; # try to fetch the init arg from the %params ... - if ( defined($init_arg) and exists $params->{$init_arg}) { + if (exists $params->{$init_arg}) { $self->_set_initial_slot_value($meta_instance, $instance, $params->{$init_arg}); return 1; }