mirror of
https://github.com/XRPLF/clio.git
synced 2025-12-06 01:08:01 +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()) {
|
||||
return tryIntegralValueAs<uint32_t>(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;
|
||||
|
||||
@@ -27,7 +27,8 @@
|
||||
#include <cstdint>
|
||||
#include <limits>
|
||||
#include <stdexcept>
|
||||
#include <tuple>
|
||||
#include <string>
|
||||
#include <type_traits>
|
||||
|
||||
TEST(JsonUtils, RemoveSecrets)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user