refactor: Enable more clang-tidy readability checks (#6595)

Co-authored-by: Sergey Kuznetsov <kuzzz99@gmail.com>
This commit is contained in:
Alex Kremer
2026-03-24 15:42:12 +00:00
committed by GitHub
parent 8b986e4ab0
commit 0eedefbf45
248 changed files with 948 additions and 935 deletions

View File

@@ -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_;