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:
Carlos Antonio da Silva 2024-02-21 09:30:39 -03:00
parent cdc1ca7a32
commit baad391196
1 changed files with 1 additions and 2 deletions

View File

@ -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)