From: Shawn M Moore Date: Wed, 16 Jul 2008 06:06:04 +0000 (+0000) Subject: We already know $args->{trigger} is true in this codepath X-Git-Tag: 0.19~246 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=02755b212ee85187b12875ed86776e3cad80956a;hp=80be11ca5100a1084bad811b722c6d55ccb99424;p=gitmo%2FMouse.git We already know $args->{trigger} is true in this codepath --- diff --git a/lib/Mouse/Meta/Attribute.pm b/lib/Mouse/Meta/Attribute.pm index ef50e05..370db8a 100644 --- a/lib/Mouse/Meta/Attribute.pm +++ b/lib/Mouse/Meta/Attribute.pm @@ -283,8 +283,7 @@ sub validate_args { } confess "Trigger must be a CODE or HASH ref on attribute ($name)" - if $args->{trigger} - && ref($args->{trigger}) ne 'HASH'; + if ref($args->{trigger}) ne 'HASH'; } return 1;