mirror of
https://github.com/XRPLF/clio.git
synced 2026-06-02 16:26:43 +00:00
style: clang-tidy auto fixes (#2799)
Co-authored-by: mathbunnyru <12270691+mathbunnyru@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
42a6f516dc
commit
19157dec74
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user