No longer need to qualify the Bag type constraint with an "if we don't already have it"
Shawn M Moore [Sun, 25 May 2008 01:45:26 +0000 (01:45 +0000)]
lib/MooseX/AttributeHelpers/Trait/Collection/Bag.pm

index 5dd0af4..96a7bbe 100644 (file)
@@ -17,8 +17,7 @@ has 'method_provider' => (
     default   => 'MooseX::AttributeHelpers::MethodProvider::Bag'
 );
 
-subtype 'Bag' => as 'HashRef[Int]'
-    unless find_type_constraint('Bag');
+subtype 'Bag' => as 'HashRef[Int]';
 
 sub helper_type { 'Bag' }