style: clang-tidy auto fixes (#2797)

This commit is contained in:
github-actions[bot]
2025-11-21 10:17:56 +00:00
committed by GitHub
parent 2cd8226a11
commit 42a6f516dc
2 changed files with 4 additions and 2 deletions

View File

@@ -145,7 +145,8 @@ getLedgerIndex(boost::json::value const& value)
{ {
if (not value.is_string()) { if (not value.is_string()) {
return tryIntegralValueAs<uint32_t>(value); return tryIntegralValueAs<uint32_t>(value);
} else if (value.as_string() != "validated") { }
if (value.as_string() != "validated") {
uint32_t ledgerIndex{}; uint32_t ledgerIndex{};
if (beast::lexicalCastChecked(ledgerIndex, value.as_string().c_str())) if (beast::lexicalCastChecked(ledgerIndex, value.as_string().c_str()))
return ledgerIndex; return ledgerIndex;

View File

@@ -27,7 +27,8 @@
#include <cstdint> #include <cstdint>
#include <limits> #include <limits>
#include <stdexcept> #include <stdexcept>
#include <tuple> #include <string>
#include <type_traits>
TEST(JsonUtils, RemoveSecrets) TEST(JsonUtils, RemoveSecrets)
{ {