X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMouse%2FMeta%2FAttribute.pm;h=370db8a4983ab50c8f712addadc3d3a9451d24ac;hb=02755b212ee85187b12875ed86776e3cad80956a;hp=ef50e056de9731c75d0244d249731fd4a68ae16e;hpb=80be11ca5100a1084bad811b722c6d55ccb99424;p=gitmo%2FMouse.git 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;