Skip to content
Browse files

Remove unused orig_handler and unneeded parentheses

  • Loading branch information...
1 parent d39c3b1 commit 17600eb435693f333af46912fd796fcdff5657b2 @spastorino spastorino committed with tenderlove Jul 20, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 actionpack/lib/action_controller/metal/rescue.rb
View
6 actionpack/lib/action_controller/metal/rescue.rb
@@ -4,9 +4,9 @@ module Rescue
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)

0 comments on commit 17600eb

Please sign in to comment.
Something went wrong with that request. Please try again.