mirror of
https://github.com/XRPLF/rippled.git
synced 2026-04-29 15:37:57 +00:00
refactor: Add simple clang-tidy readability checks (#6556)
This change enables the following clang-tidy checks: - readability-avoid-nested-conditional-operator, - readability-avoid-return-with-void-value, - readability-braces-around-statements, - readability-const-return-type, - readability-container-contains, - readability-container-size-empty, - readability-else-after-return, - readability-make-member-function-const, - readability-redundant-casting, - readability-redundant-inline-specifier, - readability-redundant-member-init, - readability-redundant-string-init, - readability-reference-to-constructed-temporary, - readability-static-definition
This commit is contained in:
@@ -13,7 +13,7 @@ public:
|
||||
checkMarker(Json::Value const& val)
|
||||
{
|
||||
return val.isMember(jss::marker) && val[jss::marker].isString() &&
|
||||
val[jss::marker].asString().size() > 0;
|
||||
!val[jss::marker].asString().empty();
|
||||
}
|
||||
|
||||
void
|
||||
@@ -198,8 +198,10 @@ public:
|
||||
jvParams[jss::ledger_index] = "closed";
|
||||
auto jrr = env.rpc("json", "ledger_data", to_string(jvParams))[jss::result];
|
||||
if (BEAST_EXPECT(jrr.isMember(jss::ledger)))
|
||||
{
|
||||
BEAST_EXPECT(
|
||||
jrr[jss::ledger][jss::ledger_hash] == to_string(env.closed()->header().hash));
|
||||
}
|
||||
}
|
||||
{
|
||||
// Closed ledger with binary form
|
||||
|
||||
Reference in New Issue
Block a user