Permalink
Browse files

Remove redundant statements in the Capistrano::Configuration::Executi…

…on module
  • Loading branch information...
1 parent e82de1c commit ea155ddac2c2b2b381f878b6a46450f71c3840ac @carsomyr carsomyr committed Jul 3, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 lib/capistrano/configuration/execution.rb
View
5 lib/capistrano/configuration/execution.rb
@@ -59,7 +59,7 @@ def transaction
rollback!
raise
ensure
- self.rollback_requests = nil if Thread.main == Thread.current
+ self.rollback_requests = nil
end
end
@@ -108,8 +108,7 @@ def find_and_execute_task(path, hooks={})
def rollback!
return if Thread.current[:rollback_requests].nil?
- Thread.current[:rolled_back] = true
-
+
# throw the task back on the stack so that roles are properly
# interpreted in the scope of the task in question.
rollback_requests.reverse.each do |frame|

0 comments on commit ea155dd

Please sign in to comment.