respond to comments

This commit is contained in:
Mayukha Vadari
2026-04-01 16:13:26 -04:00
parent 8deb43c358
commit 9d4574a82c

View File

@@ -298,10 +298,8 @@ private:
{
std::int32_t ledgerMin = 0,
ledgerMax = 0; // note: these are only used when properly set
if (auto const ledgerMinOpt = jvParseInt(jvParams[1u]))
if (auto const ledgerMinOpt = jvParseInt(jvParams[1u]); ledgerMinOpt.has_value())
{
// A value of -1 instructs the server to use the most recent
// validated ledger version available
ledgerMin = *ledgerMinOpt;
}
else