X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMouse%2FMeta%2FMethod%2FDestructor.pm;h=904b4134287cf7b26318fa381f9045d87221cd18;hb=43e6a50b260b096a34b0c46da87296bd220c4184;hp=09e23bc938c87d28430d3e0fcfb38ca987fa5751;hpb=8da68341396129a1b4545299fda0fae7e9cf6d56;p=gitmo%2FMouse.git diff --git a/lib/Mouse/Meta/Method/Destructor.pm b/lib/Mouse/Meta/Method/Destructor.pm index 09e23bc..904b413 100644 --- a/lib/Mouse/Meta/Method/Destructor.pm +++ b/lib/Mouse/Meta/Method/Destructor.pm @@ -16,7 +16,7 @@ sub generate_destructor_method_inline { } join "\n", @code; } else { - return; # no demolish =) + return sub { }; # no demolish =) } }; @@ -26,7 +26,6 @@ sub generate_destructor_method_inline { $demolishall; } ... - warn $code if $ENV{DEBUG}; local $@; my $res = eval $code;