Commit 20d74bb0 authored by Rosen Penev's avatar Rosen Penev

clang-tidy: replace loop with std::all_of

Found with readability-use-anyofallof Signed-off-by: 's avatarRosen Penev <rosenp@gmail.com>
parent bedcf1cc
...@@ -367,11 +367,7 @@ SnapcastOutput::IsDrained() const noexcept ...@@ -367,11 +367,7 @@ SnapcastOutput::IsDrained() const noexcept
if (!chunks.empty()) if (!chunks.empty())
return false; return false;
for (const auto &client : clients) return std::all_of(clients.begin(), clients.end(), [](auto&& c){ return c.IsDrained(); });
if (!client.IsDrained())
return false;
return true;
} }
void void
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment