reverted attempt to fix the parens issue
[gitmo/MooseX-Types.git] / lib / MooseX / Types.pm
index f1d3a66..e8c20ac 100644 (file)
@@ -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);
     };
 }