style: Unify style for 'not expectedLgrInfo.has_value()' (#2977)

This commit is contained in:
Ayaz Salikhov
2026-03-06 12:27:54 +00:00
committed by GitHub
parent 9cbc99651c
commit 43e8c8cddb
27 changed files with 27 additions and 27 deletions

View File

@@ -103,7 +103,7 @@ AMMInfoHandler::process(AMMInfoHandler::Input const& input, Context const& ctx)
*sharedPtrBackend_, ctx.yield, input.ledgerHash, input.ledgerIndex, range->maxSequence
);
if (!expectedLgrInfo.has_value())
if (not expectedLgrInfo.has_value())
return Error{expectedLgrInfo.error()};
auto const& lgrInfo = expectedLgrInfo.value();

View File

@@ -97,7 +97,7 @@ AccountChannelsHandler::process(
*sharedPtrBackend_, ctx.yield, input.ledgerHash, input.ledgerIndex, range->maxSequence
);
if (!expectedLgrInfo.has_value())
if (not expectedLgrInfo.has_value())
return Error{expectedLgrInfo.error()};
auto const& lgrInfo = expectedLgrInfo.value();

View File

@@ -55,7 +55,7 @@ AccountCurrenciesHandler::process(
*sharedPtrBackend_, ctx.yield, input.ledgerHash, input.ledgerIndex, range->maxSequence
);
if (!expectedLgrInfo.has_value())
if (not expectedLgrInfo.has_value())
return Error{expectedLgrInfo.error()};
auto const& lgrInfo = expectedLgrInfo.value();

View File

@@ -69,7 +69,7 @@ AccountInfoHandler::process(AccountInfoHandler::Input const& input, Context cons
*sharedPtrBackend_, ctx.yield, input.ledgerHash, input.ledgerIndex, range->maxSequence
);
if (!expectedLgrInfo.has_value())
if (not expectedLgrInfo.has_value())
return Error{expectedLgrInfo.error()};
auto const& lgrInfo = expectedLgrInfo.value();

View File

@@ -146,7 +146,7 @@ AccountLinesHandler::process(AccountLinesHandler::Input const& input, Context co
*sharedPtrBackend_, ctx.yield, input.ledgerHash, input.ledgerIndex, range->maxSequence
);
if (!expectedLgrInfo.has_value())
if (not expectedLgrInfo.has_value())
return Error{expectedLgrInfo.error()};
auto const& lgrInfo = expectedLgrInfo.value();

View File

@@ -128,7 +128,7 @@ AccountMPTokenIssuancesHandler::process(
*sharedPtrBackend_, ctx.yield, input.ledgerHash, input.ledgerIndex, range->maxSequence
);
if (!expectedLgrInfo.has_value())
if (not expectedLgrInfo.has_value())
return Error{expectedLgrInfo.error()};
auto const& lgrInfo = expectedLgrInfo.value();

View File

@@ -85,7 +85,7 @@ AccountMPTokensHandler::process(
*sharedPtrBackend_, ctx.yield, input.ledgerHash, input.ledgerIndex, range->maxSequence
);
if (!expectedLgrInfo.has_value())
if (not expectedLgrInfo.has_value())
return Error{expectedLgrInfo.error()};
auto const& lgrInfo = expectedLgrInfo.value();

View File

@@ -58,7 +58,7 @@ AccountNFTsHandler::process(AccountNFTsHandler::Input const& input, Context cons
*sharedPtrBackend_, ctx.yield, input.ledgerHash, input.ledgerIndex, range->maxSequence
);
if (!expectedLgrInfo.has_value())
if (not expectedLgrInfo.has_value())
return Error{expectedLgrInfo.error()};
auto const& lgrInfo = expectedLgrInfo.value();

View File

@@ -59,7 +59,7 @@ AccountObjectsHandler::process(AccountObjectsHandler::Input const& input, Contex
*sharedPtrBackend_, ctx.yield, input.ledgerHash, input.ledgerIndex, range->maxSequence
);
if (!expectedLgrInfo.has_value())
if (not expectedLgrInfo.has_value())
return Error{expectedLgrInfo.error()};
auto const& lgrInfo = expectedLgrInfo.value();

View File

@@ -75,7 +75,7 @@ AccountOffersHandler::process(AccountOffersHandler::Input const& input, Context
*sharedPtrBackend_, ctx.yield, input.ledgerHash, input.ledgerIndex, range->maxSequence
);
if (!expectedLgrInfo.has_value())
if (not expectedLgrInfo.has_value())
return Error{expectedLgrInfo.error()};
auto const& lgrInfo = expectedLgrInfo.value();

View File

@@ -106,7 +106,7 @@ AccountTxHandler::process(AccountTxHandler::Input const& input, Context const& c
range->maxSequence
);
if (!expectedLgrInfo.has_value())
if (not expectedLgrInfo.has_value())
return Error{expectedLgrInfo.error()};
maxIndex = minIndex = expectedLgrInfo.value().seq;

View File

@@ -51,7 +51,7 @@ BookChangesHandler::process(BookChangesHandler::Input const& input, Context cons
*sharedPtrBackend_, ctx.yield, input.ledgerHash, input.ledgerIndex, range->maxSequence
);
if (!expectedLgrInfo.has_value())
if (not expectedLgrInfo.has_value())
return Error{expectedLgrInfo.error()};
auto const& lgrInfo = expectedLgrInfo.value();

View File

@@ -59,7 +59,7 @@ BookOffersHandler::process(Input const& input, Context const& ctx) const
*sharedPtrBackend_, ctx.yield, input.ledgerHash, input.ledgerIndex, range->maxSequence
);
if (!expectedLgrInfo.has_value())
if (not expectedLgrInfo.has_value())
return Error{expectedLgrInfo.error()};
auto const& lgrInfo = expectedLgrInfo.value();

View File

@@ -62,7 +62,7 @@ DepositAuthorizedHandler::process(
*sharedPtrBackend_, ctx.yield, input.ledgerHash, input.ledgerIndex, range->maxSequence
);
if (!expectedLgrInfo.has_value())
if (not expectedLgrInfo.has_value())
return Error{expectedLgrInfo.error()};
auto const& lgrInfo = expectedLgrInfo.value();

View File

@@ -63,7 +63,7 @@ FeatureHandler::process(FeatureHandler::Input const& input, Context const& ctx)
*sharedPtrBackend_, ctx.yield, input.ledgerHash, input.ledgerIndex, range->maxSequence
);
if (!expectedLgrInfo.has_value())
if (not expectedLgrInfo.has_value())
return Error{expectedLgrInfo.error()};
auto const& lgrInfo = expectedLgrInfo.value();

View File

@@ -69,7 +69,7 @@ GatewayBalancesHandler::process(
*sharedPtrBackend_, ctx.yield, input.ledgerHash, input.ledgerIndex, range->maxSequence
);
if (!expectedLgrInfo.has_value())
if (not expectedLgrInfo.has_value())
return Error{expectedLgrInfo.error()};
// check account

View File

@@ -71,7 +71,7 @@ GetAggregatePriceHandler::process(
*sharedPtrBackend_, ctx.yield, input.ledgerHash, input.ledgerIndex, range->maxSequence
);
if (!expectedLgrInfo.has_value())
if (not expectedLgrInfo.has_value())
return Error{expectedLgrInfo.error()};
auto const& lgrInfo = expectedLgrInfo.value();

View File

@@ -58,7 +58,7 @@ LedgerHandler::process(LedgerHandler::Input const& input, Context const& ctx) co
*sharedPtrBackend_, ctx.yield, input.ledgerHash, input.ledgerIndex, range->maxSequence
);
if (!expectedLgrInfo.has_value())
if (not expectedLgrInfo.has_value())
return Error{expectedLgrInfo.error()};
auto const& lgrInfo = expectedLgrInfo.value();

View File

@@ -69,7 +69,7 @@ LedgerDataHandler::process(Input const& input, Context const& ctx) const
*sharedPtrBackend_, ctx.yield, input.ledgerHash, input.ledgerIndex, range->maxSequence
);
if (!expectedLgrInfo.has_value())
if (not expectedLgrInfo.has_value())
return Error{expectedLgrInfo.error()};
auto const& lgrInfo = expectedLgrInfo.value();

View File

@@ -252,7 +252,7 @@ LedgerEntryHandler::process(LedgerEntryHandler::Input const& input, Context cons
*sharedPtrBackend_, ctx.yield, input.ledgerHash, input.ledgerIndex, range->maxSequence
);
if (!expectedLgrInfo.has_value())
if (not expectedLgrInfo.has_value())
return Error{expectedLgrInfo.error()};
auto const& lgrInfo = expectedLgrInfo.value();

View File

@@ -56,7 +56,7 @@ MPTHoldersHandler::process(MPTHoldersHandler::Input const& input, Context const&
auto const expectedLgrInfo = getLedgerHeaderFromHashOrSeq(
*sharedPtrBackend_, ctx.yield, input.ledgerHash, input.ledgerIndex, range->maxSequence
);
if (!expectedLgrInfo.has_value())
if (not expectedLgrInfo.has_value())
return Error{expectedLgrInfo.error()};
auto const& lgrInfo = expectedLgrInfo.value();

View File

@@ -87,7 +87,7 @@ NFTHistoryHandler::process(NFTHistoryHandler::Input const& input, Context const&
*sharedPtrBackend_, ctx.yield, input.ledgerHash, input.ledgerIndex, range->maxSequence
);
if (!expectedLgrInfo.has_value())
if (not expectedLgrInfo.has_value())
return Error{expectedLgrInfo.error()};
maxIndex = minIndex = expectedLgrInfo.value().seq;

View File

@@ -54,7 +54,7 @@ NFTInfoHandler::process(NFTInfoHandler::Input const& input, Context const& ctx)
*sharedPtrBackend_, ctx.yield, input.ledgerHash, input.ledgerIndex, range->maxSequence
);
if (!expectedLgrInfo.has_value())
if (not expectedLgrInfo.has_value())
return Error{expectedLgrInfo.error()};
auto const& lgrInfo = expectedLgrInfo.value();

View File

@@ -97,7 +97,7 @@ NFTOffersHandlerBase::iterateOfferDirectory(
*sharedPtrBackend_, yield, input.ledgerHash, input.ledgerIndex, range->maxSequence
);
if (!expectedLgrInfo.has_value())
if (not expectedLgrInfo.has_value())
return Error{expectedLgrInfo.error()};
auto const& lgrInfo = expectedLgrInfo.value();

View File

@@ -55,7 +55,7 @@ NFTsByIssuerHandler::process(NFTsByIssuerHandler::Input const& input, Context co
auto const expectedLgrInfo = getLedgerHeaderFromHashOrSeq(
*sharedPtrBackend_, ctx.yield, input.ledgerHash, input.ledgerIndex, range->maxSequence
);
if (!expectedLgrInfo.has_value())
if (not expectedLgrInfo.has_value())
return Error{expectedLgrInfo.error()};
auto const& lgrInfo = expectedLgrInfo.value();

View File

@@ -65,7 +65,7 @@ NoRippleCheckHandler::process(NoRippleCheckHandler::Input const& input, Context
*sharedPtrBackend_, ctx.yield, input.ledgerHash, input.ledgerIndex, range->maxSequence
);
if (!expectedLgrInfo.has_value())
if (not expectedLgrInfo.has_value())
return Error{expectedLgrInfo.error()};
auto const& lgrInfo = expectedLgrInfo.value();

View File

@@ -52,7 +52,7 @@ TransactionEntryHandler::process(
*sharedPtrBackend_, ctx.yield, input.ledgerHash, input.ledgerIndex, range->maxSequence
);
if (!expectedLgrInfo.has_value())
if (not expectedLgrInfo.has_value())
return Error{expectedLgrInfo.error()};
auto output = TransactionEntryHandler::Output{};