clang-tidy: replace loop with std::all_of
Found with readability-use-anyofallof Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
bedcf1cce5
commit
20d74bb07e
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue