From 42a6f516dcc94fc17247985504daa1778fdb9543 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 21 Nov 2025 10:17:56 +0000 Subject: [PATCH] style: clang-tidy auto fixes (#2797) --- src/util/JsonUtils.hpp | 3 ++- tests/unit/JsonUtilTests.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/util/JsonUtils.hpp b/src/util/JsonUtils.hpp index f5c4a3df..1705d648 100644 --- a/src/util/JsonUtils.hpp +++ b/src/util/JsonUtils.hpp @@ -145,7 +145,8 @@ getLedgerIndex(boost::json::value const& value) { if (not value.is_string()) { return tryIntegralValueAs(value); - } else if (value.as_string() != "validated") { + } + if (value.as_string() != "validated") { uint32_t ledgerIndex{}; if (beast::lexicalCastChecked(ledgerIndex, value.as_string().c_str())) return ledgerIndex; diff --git a/tests/unit/JsonUtilTests.cpp b/tests/unit/JsonUtilTests.cpp index 3eae61f2..1fe5d360 100644 --- a/tests/unit/JsonUtilTests.cpp +++ b/tests/unit/JsonUtilTests.cpp @@ -27,7 +27,8 @@ #include #include #include -#include +#include +#include TEST(JsonUtils, RemoveSecrets) {