From 19157dec74167325d5bb824e9deca57cea9c0b63 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 21 Nov 2025 11:02:07 +0000 Subject: [PATCH] style: clang-tidy auto fixes (#2799) Co-authored-by: mathbunnyru <12270691+mathbunnyru@users.noreply.github.com> --- src/util/JsonUtils.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/util/JsonUtils.hpp b/src/util/JsonUtils.hpp index 1705d648d..2d39b0f34 100644 --- a/src/util/JsonUtils.hpp +++ b/src/util/JsonUtils.hpp @@ -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"); }