fix tidy error

This commit is contained in:
tequ
2026-05-01 13:08:25 +09:00
committed by Oleksandr
parent 405b314842
commit 9d4c4968ad

View File

@@ -250,8 +250,9 @@ adjustOwnerCount(
{
XRPL_ASSERT(accountSle, "xrpl::adjustOwnerCount : valid account sle");
auto const sleType = accountSle->getType();
bool const validType = sponsorSle ? sleType == ltACCOUNT_ROOT
: sleType == ltLOAN_BROKER || sleType == ltACCOUNT_ROOT;
[[maybe_unused]] bool const validType = sponsorSle
? sleType == ltACCOUNT_ROOT
: sleType == ltLOAN_BROKER || sleType == ltACCOUNT_ROOT;
XRPL_ASSERT(validType, "xrpl::adjustOwnerCount : valid account sle type");
XRPL_ASSERT(adjustment, "xrpl::adjustOwnerCount : nonzero adjustment input");