mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-30 16:45:51 +00:00
style: clang-tidy auto fixes (#2797)
This commit is contained in:
committed by
GitHub
parent
2cd8226a11
commit
42a6f516dc
@@ -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;
|
||||||
|
|||||||
@@ -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)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user