From: John Napiorkowski Date: Wed, 27 Aug 2008 15:55:21 +0000 (+0000) Subject: reverted attempt to fix the parens issue X-Git-Tag: 0.06~4^2~14 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMooseX-Types.git;a=commitdiff_plain;h=0e92a78eb793e7761cc58a662eb6ed1c7a8f2aa7 reverted attempt to fix the parens issue --- diff --git a/lib/MooseX/Types.pm b/lib/MooseX/Types.pm index f1d3a66..e8c20ac 100644 --- a/lib/MooseX/Types.pm +++ b/lib/MooseX/Types.pm @@ -316,11 +316,7 @@ sub type_export_generator { $type_constraint = defined($type_constraint) ? $type_constraint : MooseX::Types::UndefinedType->new($name); - if(my(@extra_args) = @_) { - return $class->create_type_decorator($type_constraint), @_; - } else { - return $class->create_type_decorator($type_constraint); - } + return $class->create_type_decorator($type_constraint); }; }