projects
/
gitmo/Mouse.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
80be11c
)
We already know $args->{trigger} is true in this codepath
Shawn M Moore [Wed, 16 Jul 2008 06:06:04 +0000 (06:06 +0000)]
lib/Mouse/Meta/Attribute.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/Mouse/Meta/Attribute.pm
b/lib/Mouse/Meta/Attribute.pm
index
ef50e05
..
370db8a
100644
(file)
--- 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;