Add an explicit return
Dave Rolsky [Sun, 21 Jun 2009 20:10:04 +0000 (15:10 -0500)]
lib/Class/MOP/Method/Generated.pm

index 9275173..20d2c2a 100644 (file)
@@ -84,7 +84,7 @@ sub _compile_code {
 
     my $code = $self->_add_line_directive(%args);
 
-    $self->_eval_closure($args{environment}, $code);
+    return $self->_eval_closure($args{environment}, $code);
 }
 
 1;