fix clang-tidy (hopefully)

This commit is contained in:
Mayukha Vadari
2026-07-06 15:20:51 -04:00
parent 7cd8b6ba78
commit b53ea2ab80
2 changed files with 2 additions and 1 deletions

View File

@@ -237,6 +237,7 @@ adjustOwnerCountSigned(
XRPL_ASSERT(validSponsorType, "xrpl::adjustOwnerCountSigned : valid sponsor sle type");
if (!validSponsorType)
return; // LCOV_EXCL_LINE
// NOLINTNEXTLINE(bugprone-unchecked-optional-access) - checked above
auto const sponsorID = reserveCtx.sponsorID().value();
adjustOwnerCountImpl(

View File

@@ -266,9 +266,9 @@ SponsorshipSet::doApply()
return tecDIR_FULL; // LCOV_EXCL_LINE
(*newSle)[sfSponseeNode] = *sponseePage;
// NOLINTNEXTLINE(readability-suspicious-call-argument)
increaseOwnerCount(
view(),
// NOLINTNEXTLINE(readability-suspicious-call-argument)
ReserveContext::makeFromAccount(view(), sponsorAccSle, reserveSponsorAccSle),
1,
ctx_.journal);