Fix error "readability-else-after-return" (#905)

Fix compile error
This commit is contained in:
cyan317
2023-10-09 11:32:29 +01:00
committed by GitHub
parent 64b4a908da
commit 91ad1ffc3b

View File

@@ -108,7 +108,8 @@ AccountTxHandler::process(AccountTxHandler::Input input, Context const& ctx) con
{
return Error{Status{RippledError::rpcINVALID_PARAMS, "containsLedgerSpecifierAndRange"}};
}
else if (!input.ledgerIndexMax && !input.ledgerIndexMin)
if (!input.ledgerIndexMax && !input.ledgerIndexMin)
{
// mimic rippled, when both range and index specified, respect the range.
// take ledger from ledgerHash or ledgerIndex only when range is not specified