mirror of https://github.com/rails/rails
Remove unused intermediate variable
It was necessary to return properly with the previous deprecation code,
which was removed in eccc6061f4
.
This commit is contained in:
parent
cdc1ca7a32
commit
baad391196
|
@ -533,8 +533,7 @@ module ActiveRecord
|
|||
@connection.lock.synchronize do
|
||||
transaction = begin_transaction(isolation: isolation, joinable: joinable)
|
||||
begin
|
||||
ret = yield
|
||||
ret
|
||||
yield
|
||||
rescue Exception => error
|
||||
rollback_transaction
|
||||
after_failure_actions(transaction, error)
|
||||
|
|
Loading…
Reference in New Issue