From df4d2783c9642901722a7d34344c5c6aa2d92f91 Mon Sep 17 00:00:00 2001 From: Guoliang Cao Date: Tue, 1 Jan 2013 11:28:10 -0500 Subject: [PATCH] Cosmetic changes --- lib/aspector/base.rb | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/aspector/base.rb b/lib/aspector/base.rb index ca735a5..691d0a9 100644 --- a/lib/aspector/base.rb +++ b/lib/aspector/base.rb @@ -341,7 +341,7 @@ def aop_recreate_method_with_advices method, before_advices, after_advices, arou aspect.aop_logger.log <%= Logging::TRACE %>, '<%= method %>', 'exit-method-due-to-before-filter', '<%= advice.name %>' % end return - end + end % end % end @@ -351,11 +351,7 @@ def aop_recreate_method_with_advices method, before_advices, after_advices, arou aspect.aop_logger.log <%= Logging::TRACE %>, '<%= method %>', 'before-invoke-advice', '<%= around_advice.name %>' % end % if around_advice.advice_code - result = -( -<%= around_advice.advice_code.gsub('INVOKE_PROXY', - 'wrapped_method.bind(self).call(*args, &block)') -%>) + result = (<%= around_advice.advice_code.gsub('INVOKE_PROXY', 'wrapped_method.bind(self).call(*args, &block)') %>) % else % if aop_logger.visible?(Logging::TRACE)