mirror of
https://github.com/XRPLF/rippled.git
synced 2026-08-23 07:10:53 +00:00
refactor: Enable more clang-tidy readability checks (#6595)
Co-authored-by: Sergey Kuznetsov <kuzzz99@gmail.com>
This commit is contained in:
@@ -76,7 +76,7 @@ Env::AppBundle::~AppBundle()
|
||||
client.reset();
|
||||
// Make sure all jobs finish, otherwise tests
|
||||
// might not get the coverage they expect.
|
||||
if (app)
|
||||
if (app != nullptr)
|
||||
{
|
||||
app->getJobQueue().rendezvous();
|
||||
app->signalStop("~AppBundle");
|
||||
@@ -218,6 +218,7 @@ Env::balance(Account const& account, MPTIssue const& mptIssue) const
|
||||
}
|
||||
|
||||
PrettyAmount
|
||||
// NOLINTNEXTLINE(readability-convert-member-functions-to-static)
|
||||
Env::balance(Account const& account, Asset const& asset) const
|
||||
{
|
||||
return std::visit([&](auto const& issue) { return balance(account, issue); }, asset.value());
|
||||
@@ -468,7 +469,7 @@ Env::postconditions(
|
||||
// we didn't get the expected result.
|
||||
return;
|
||||
}
|
||||
if (trace_)
|
||||
if (trace_ != 0)
|
||||
{
|
||||
if (trace_ > 0)
|
||||
--trace_;
|
||||
|
||||
Reference in New Issue
Block a user