mirror of
https://github.com/XRPLF/rippled.git
synced 2026-06-03 16:56:48 +00:00
fix clang-tidy error
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user