From: Shawn M Moore Date: Sun, 25 May 2008 01:45:26 +0000 (+0000) Subject: No longer need to qualify the Bag type constraint with an "if we don't already have it" X-Git-Tag: 0.18_01~10 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=0afcb318a54d081fece32efe5db137167e5c9dea;p=gitmo%2FMooseX-AttributeHelpers.git No longer need to qualify the Bag type constraint with an "if we don't already have it" --- diff --git a/lib/MooseX/AttributeHelpers/Trait/Collection/Bag.pm b/lib/MooseX/AttributeHelpers/Trait/Collection/Bag.pm index 5dd0af4..96a7bbe 100644 --- a/lib/MooseX/AttributeHelpers/Trait/Collection/Bag.pm +++ b/lib/MooseX/AttributeHelpers/Trait/Collection/Bag.pm @@ -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' }