Skip to content

Commit

Permalink
Enable bool shortcircuit again
Browse files Browse the repository at this point in the history
  • Loading branch information
Bronek committed May 30, 2024
1 parent 412dad1 commit edd07ea
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ripple/app/tx/impl/Transactor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -854,10 +854,10 @@ Transactor::operator()()
}
#endif

if (ctx_.app.trapTxID() == ctx_.tx.getTransactionID())
if (auto const& trap = ctx_.app.trapTxID();
trap && *trap == ctx_.tx.getTransactionID())
{
JLOG(j_.debug()) << "Transaction trapped: "
<< ctx_.tx.getTransactionID();
JLOG(j_.debug()) << "Transaction trapped: " << *trap;
}

auto result = ctx_.preclaimResult;
Expand Down

0 comments on commit edd07ea

Please sign in to comment.