diff options
author | Santiago Pastorino <santiago@wyeworks.com> | 2010-07-20 00:03:20 +0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-07-20 04:32:08 +0800 |
commit | 17600eb435693f333af46912fd796fcdff5657b2 (patch) | |
tree | cfeeac87f6f3ff32c28a830028844ba166b0a9ac | |
parent | d39c3b179c2c0d31099033b3de4a866e19ce144b (diff) | |
download | rails-17600eb435693f333af46912fd796fcdff5657b2.tar.gz rails-17600eb435693f333af46912fd796fcdff5657b2.tar.bz2 rails-17600eb435693f333af46912fd796fcdff5657b2.zip |
Remove unused orig_handler and unneeded parentheses
-rw-r--r-- | actionpack/lib/action_controller/metal/rescue.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/lib/action_controller/metal/rescue.rb b/actionpack/lib/action_controller/metal/rescue.rb index cc2b020e03..eb037aa1b0 100644 --- a/actionpack/lib/action_controller/metal/rescue.rb +++ b/actionpack/lib/action_controller/metal/rescue.rb @@ -4,9 +4,9 @@ module ActionController #:nodoc: include ActiveSupport::Rescuable def rescue_with_handler(exception) - if ((exception.respond_to?(:original_exception)) && - (orig_exception = exception.original_exception) && - (orig_handler = handler_for_rescue(orig_exception))) + if (exception.respond_to?(:original_exception) && + (orig_exception = exception.original_exception) && + handler_for_rescue(orig_exception)) exception = orig_exception end super(exception) |