projects
/
gitmo/Moose.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Add explicit return values for (almost) all native delegation mutating methods
[gitmo/Moose.git]
/
lib
/
Moose
/
Meta
/
Method
/
Accessor
/
Native
/
Array
/
sort_in_place.pm
diff --git
a/lib/Moose/Meta/Method/Accessor/Native/Array/sort_in_place.pm
b/lib/Moose/Meta/Method/Accessor/Native/Array/sort_in_place.pm
index
14d7d27
..
41ab90f
100644
(file)
--- a/
lib/Moose/Meta/Method/Accessor/Native/Array/sort_in_place.pm
+++ b/
lib/Moose/Meta/Method/Accessor/Native/Array/sort_in_place.pm
@@
-16,6
+16,7
@@
with 'Moose::Meta::Method::Accessor::Native::Array::Writer' => {
qw(
_maximum_arguments
_inline_check_arguments
+ _return_value
)
]
};
@@
-39,6
+40,8
@@
sub _potential_value {
"[ \$_[0] ? sort { \$_[0]->( \$a, \$b ) } \@{ $slot_access } : sort \@{ $slot_access} ]";
}
+sub _return_value { return q{} }
+
no Moose::Role;
1;