diff --git a/src/rpc/handlers/AMMInfo.cpp b/src/rpc/handlers/AMMInfo.cpp index 89d9a2235..27fc1b3e4 100644 --- a/src/rpc/handlers/AMMInfo.cpp +++ b/src/rpc/handlers/AMMInfo.cpp @@ -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(); diff --git a/src/rpc/handlers/AccountChannels.cpp b/src/rpc/handlers/AccountChannels.cpp index e6cab7648..80dd945c4 100644 --- a/src/rpc/handlers/AccountChannels.cpp +++ b/src/rpc/handlers/AccountChannels.cpp @@ -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(); diff --git a/src/rpc/handlers/AccountCurrencies.cpp b/src/rpc/handlers/AccountCurrencies.cpp index 2e7980f7c..12a05da07 100644 --- a/src/rpc/handlers/AccountCurrencies.cpp +++ b/src/rpc/handlers/AccountCurrencies.cpp @@ -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(); diff --git a/src/rpc/handlers/AccountInfo.cpp b/src/rpc/handlers/AccountInfo.cpp index 8a99fa442..19d498661 100644 --- a/src/rpc/handlers/AccountInfo.cpp +++ b/src/rpc/handlers/AccountInfo.cpp @@ -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(); diff --git a/src/rpc/handlers/AccountLines.cpp b/src/rpc/handlers/AccountLines.cpp index be5a34581..b35ea267f 100644 --- a/src/rpc/handlers/AccountLines.cpp +++ b/src/rpc/handlers/AccountLines.cpp @@ -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(); diff --git a/src/rpc/handlers/AccountMPTokenIssuances.cpp b/src/rpc/handlers/AccountMPTokenIssuances.cpp index 03f826362..efb203faa 100644 --- a/src/rpc/handlers/AccountMPTokenIssuances.cpp +++ b/src/rpc/handlers/AccountMPTokenIssuances.cpp @@ -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(); diff --git a/src/rpc/handlers/AccountMPTokens.cpp b/src/rpc/handlers/AccountMPTokens.cpp index 3c11e8a2a..06b16bc09 100644 --- a/src/rpc/handlers/AccountMPTokens.cpp +++ b/src/rpc/handlers/AccountMPTokens.cpp @@ -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(); diff --git a/src/rpc/handlers/AccountNFTs.cpp b/src/rpc/handlers/AccountNFTs.cpp index 110341bff..5c5c33551 100644 --- a/src/rpc/handlers/AccountNFTs.cpp +++ b/src/rpc/handlers/AccountNFTs.cpp @@ -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(); diff --git a/src/rpc/handlers/AccountObjects.cpp b/src/rpc/handlers/AccountObjects.cpp index d5c79d94b..4ff2be946 100644 --- a/src/rpc/handlers/AccountObjects.cpp +++ b/src/rpc/handlers/AccountObjects.cpp @@ -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(); diff --git a/src/rpc/handlers/AccountOffers.cpp b/src/rpc/handlers/AccountOffers.cpp index 4193741e5..e9884ede8 100644 --- a/src/rpc/handlers/AccountOffers.cpp +++ b/src/rpc/handlers/AccountOffers.cpp @@ -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(); diff --git a/src/rpc/handlers/AccountTx.cpp b/src/rpc/handlers/AccountTx.cpp index 96cce79d1..12e8f9cb7 100644 --- a/src/rpc/handlers/AccountTx.cpp +++ b/src/rpc/handlers/AccountTx.cpp @@ -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; diff --git a/src/rpc/handlers/BookChanges.cpp b/src/rpc/handlers/BookChanges.cpp index a9d1d97fd..f14391b12 100644 --- a/src/rpc/handlers/BookChanges.cpp +++ b/src/rpc/handlers/BookChanges.cpp @@ -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(); diff --git a/src/rpc/handlers/BookOffers.cpp b/src/rpc/handlers/BookOffers.cpp index bddbdec4e..e3c8cb181 100644 --- a/src/rpc/handlers/BookOffers.cpp +++ b/src/rpc/handlers/BookOffers.cpp @@ -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(); diff --git a/src/rpc/handlers/DepositAuthorized.cpp b/src/rpc/handlers/DepositAuthorized.cpp index 65e24eb42..22edcb888 100644 --- a/src/rpc/handlers/DepositAuthorized.cpp +++ b/src/rpc/handlers/DepositAuthorized.cpp @@ -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(); diff --git a/src/rpc/handlers/Feature.cpp b/src/rpc/handlers/Feature.cpp index c70b7ea72..8ba488728 100644 --- a/src/rpc/handlers/Feature.cpp +++ b/src/rpc/handlers/Feature.cpp @@ -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(); diff --git a/src/rpc/handlers/GatewayBalances.cpp b/src/rpc/handlers/GatewayBalances.cpp index 5567b489a..5b4c82f22 100644 --- a/src/rpc/handlers/GatewayBalances.cpp +++ b/src/rpc/handlers/GatewayBalances.cpp @@ -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 diff --git a/src/rpc/handlers/GetAggregatePrice.cpp b/src/rpc/handlers/GetAggregatePrice.cpp index 3f4023b4e..f84370781 100644 --- a/src/rpc/handlers/GetAggregatePrice.cpp +++ b/src/rpc/handlers/GetAggregatePrice.cpp @@ -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(); diff --git a/src/rpc/handlers/Ledger.cpp b/src/rpc/handlers/Ledger.cpp index 13609577c..f4a31a08e 100644 --- a/src/rpc/handlers/Ledger.cpp +++ b/src/rpc/handlers/Ledger.cpp @@ -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(); diff --git a/src/rpc/handlers/LedgerData.cpp b/src/rpc/handlers/LedgerData.cpp index 45a47efb7..2bed4e384 100644 --- a/src/rpc/handlers/LedgerData.cpp +++ b/src/rpc/handlers/LedgerData.cpp @@ -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(); diff --git a/src/rpc/handlers/LedgerEntry.cpp b/src/rpc/handlers/LedgerEntry.cpp index b6bd14b70..8468b7c6a 100644 --- a/src/rpc/handlers/LedgerEntry.cpp +++ b/src/rpc/handlers/LedgerEntry.cpp @@ -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(); diff --git a/src/rpc/handlers/MPTHolders.cpp b/src/rpc/handlers/MPTHolders.cpp index bec6fa63e..b3507043a 100644 --- a/src/rpc/handlers/MPTHolders.cpp +++ b/src/rpc/handlers/MPTHolders.cpp @@ -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(); diff --git a/src/rpc/handlers/NFTHistory.cpp b/src/rpc/handlers/NFTHistory.cpp index 583ba24de..6ca0f5a99 100644 --- a/src/rpc/handlers/NFTHistory.cpp +++ b/src/rpc/handlers/NFTHistory.cpp @@ -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; diff --git a/src/rpc/handlers/NFTInfo.cpp b/src/rpc/handlers/NFTInfo.cpp index 636a7ba36..5371d5e74 100644 --- a/src/rpc/handlers/NFTInfo.cpp +++ b/src/rpc/handlers/NFTInfo.cpp @@ -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(); diff --git a/src/rpc/handlers/NFTOffersCommon.cpp b/src/rpc/handlers/NFTOffersCommon.cpp index 6be78ee2d..b02825816 100644 --- a/src/rpc/handlers/NFTOffersCommon.cpp +++ b/src/rpc/handlers/NFTOffersCommon.cpp @@ -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(); diff --git a/src/rpc/handlers/NFTsByIssuer.cpp b/src/rpc/handlers/NFTsByIssuer.cpp index fc0b03435..43329f4e7 100644 --- a/src/rpc/handlers/NFTsByIssuer.cpp +++ b/src/rpc/handlers/NFTsByIssuer.cpp @@ -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(); diff --git a/src/rpc/handlers/NoRippleCheck.cpp b/src/rpc/handlers/NoRippleCheck.cpp index 4a1a20c3a..6068cf122 100644 --- a/src/rpc/handlers/NoRippleCheck.cpp +++ b/src/rpc/handlers/NoRippleCheck.cpp @@ -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(); diff --git a/src/rpc/handlers/TransactionEntry.cpp b/src/rpc/handlers/TransactionEntry.cpp index 828343b05..69372bd85 100644 --- a/src/rpc/handlers/TransactionEntry.cpp +++ b/src/rpc/handlers/TransactionEntry.cpp @@ -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{};