From 5e1b98a35ac7f535eea01f2e4ea8f6ba5e312ec2 Mon Sep 17 00:00:00 2001 From: Gregory Tsipenyuk Date: Thu, 16 Jul 2026 14:14:31 -0400 Subject: [PATCH] Fix clang-tidy --- src/test/app/PathMPT_test.cpp | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/test/app/PathMPT_test.cpp b/src/test/app/PathMPT_test.cpp index 37721839fc..a47f4523a3 100644 --- a/src/test/app/PathMPT_test.cpp +++ b/src/test/app/PathMPT_test.cpp @@ -280,12 +280,9 @@ public: using namespace jtx; auto hasMPT = [](auto const& assets, MPT const& mpt) { - for (auto const& asset : assets) - { - if (asset.template holds() && asset.template get() == mpt.mpt()) - return true; - } - return false; + return std::ranges::any_of(assets, [&](auto const& asset) { + return asset.template holds() && asset.template get() == mpt.mpt(); + }); }; Env env = pathTestEnv();