fix clang-tidy

This commit is contained in:
Mayukha Vadari
2026-04-09 18:05:07 -04:00
parent 7b27096aac
commit ea3ca12894

View File

@@ -363,7 +363,7 @@ CheckCash::doApply()
// Check reserve. Return destination account SLE if enough reserve,
// otherwise return nullptr.
auto checkReserve = [&]() -> std::optional<WAccountRoot> {
WAccountRoot const dst(accountID_, psb, j_);
WAccountRoot dst(accountID_, psb, j_);
// Can the account cover the trust line's or MPT reserve?
if (std::uint32_t const ownerCount = {dst->at(sfOwnerCount)};