fix clang-tidy error

This commit is contained in:
tequ
2026-05-01 12:47:45 +09:00
committed by Oleksandr
parent 77ebc2921e
commit 405b314842
3 changed files with 5 additions and 1 deletions

View File

@@ -287,6 +287,7 @@ SponsorshipSet::doApply()
return tecDIR_FULL; // LCOV_EXCL_LINE
(*newSle)[sfSponseeNode] = *sponseePage;
// NOLINTNEXTLINE(readability-suspicious-call-argument)
adjustOwnerCount(view(), sponsorAccSle, reserveSponsorAccSle, 1, ctx_.journal);
addSponsorToLedgerEntry(newSle, reserveSponsorAccSle);

View File

@@ -292,6 +292,7 @@ SponsorshipTransfer::preclaim(PreclaimContext const& ctx)
}
// check new sponsor have sufficient balance
// NOLINTNEXTLINE(readability-suspicious-call-argument)
if (auto const ter = checkInsufficientReserve(
ctx.view,
ctx.tx,
@@ -343,6 +344,7 @@ SponsorshipTransfer::preclaim(PreclaimContext const& ctx)
// In the case of removing an account sponsor, accSle should have no sfSponsor set
// (AccountReserve = 0). However, by setting accountCountDelta = 1 here, we are able to
// calculate the actual required Account Reserve.
// NOLINTNEXTLINE(readability-suspicious-call-argument)
if (auto const ter = checkInsufficientReserve(
ctx.view,
ctx.tx,

View File

@@ -2535,7 +2535,8 @@ public:
}
}
BEAST_EXPECT(sponsoringOwnerCount(env, sponsor) == maxDeletableAMMTrustLines * 2 + 10);
BEAST_EXPECT(
sponsoringOwnerCount(env, sponsor) == ((maxDeletableAMMTrustLines * 2) + 10));
// The trustlines are partially deleted.
amm.withdrawAll(gw);