From: Dave Rolsky Date: Sun, 14 Sep 2008 21:40:35 +0000 (+0000) Subject: Tidy some funky code. X-Git-Tag: 0.58~37^2~8 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=aa009f06477b43cf1354ef04627d68f2459cf650;p=gitmo%2FMoose.git Tidy some funky code. --- diff --git a/lib/Moose/Meta/TypeConstraint/Parameterizable.pm b/lib/Moose/Meta/TypeConstraint/Parameterizable.pm index 4fdfbe6..176e52f 100644 --- a/lib/Moose/Meta/TypeConstraint/Parameterizable.pm +++ b/lib/Moose/Meta/TypeConstraint/Parameterizable.pm @@ -48,16 +48,17 @@ sub parse_parameter_str { } sub parameterize { - my ($self, $contained_tc) = @_; + my ( $self, $contained_tc ) = @_; - if($contained_tc->isa('Moose::Meta::TypeConstraint')) { - my $tc_name = $self->name .'['. $contained_tc->name .']'; + if ( $contained_tc->isa('Moose::Meta::TypeConstraint') ) { + my $tc_name = $self->name . '[' . $contained_tc->name . ']'; return Moose::Meta::TypeConstraint::Parameterized->new( name => $tc_name, parent => $self, type_parameter => $contained_tc, - ); - } else { + ); + } + else { Moose->throw_error("The type parameter must be a Moose meta type"); } }