Permalink
Browse files

Cosmetic changes

  • Loading branch information...
1 parent 032c872 commit df4d2783c9642901722a7d34344c5c6aa2d92f91 @gcao committed Jan 1, 2013
Showing with 2 additions and 6 deletions.
  1. +2 −6 lib/aspector/base.rb
View
@@ -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)

0 comments on commit df4d278

Please sign in to comment.