style: clang-tidy auto fixes (#2799)

Co-authored-by: mathbunnyru <12270691+mathbunnyru@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2025-11-21 11:02:07 +00:00
committed by GitHub
parent 42a6f516dc
commit 19157dec74

View File

@@ -148,10 +148,10 @@ getLedgerIndex(boost::json::value const& value)
}
if (value.as_string() != "validated") {
uint32_t ledgerIndex{};
if (beast::lexicalCastChecked(ledgerIndex, value.as_string().c_str()))
if (beast::lexicalCastChecked(ledgerIndex, value.as_string().c_str())) {
return ledgerIndex;
else
return std::unexpected("Invalid ledger index string");
}
return std::unexpected("Invalid ledger index string");
} else {
return std::unexpected("'validated' ledger index is requested");
}