mirror of
https://github.com/XRPLF/rippled.git
synced 2026-08-23 15:20:54 +00:00
chore: Enable most readability checks (#7772)
This commit is contained in:
@@ -37,6 +37,7 @@
|
||||
#include <xrpl/tx/paths/detail/Steps.h>
|
||||
#include <xrpl/tx/transactors/dex/AMMContext.h>
|
||||
|
||||
#include <algorithm>
|
||||
#include <cassert>
|
||||
#include <cstddef>
|
||||
#include <cstdint>
|
||||
@@ -126,12 +127,7 @@ class ElementComboIter
|
||||
[[nodiscard]] bool
|
||||
hasAny(std::initializer_list<SB> sb) const
|
||||
{
|
||||
for (auto const s : sb)
|
||||
{
|
||||
if (has(s))
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
return std::ranges::any_of(sb, [this](auto const s) { return has(s); });
|
||||
}
|
||||
|
||||
[[nodiscard]] size_t
|
||||
|
||||
Reference in New Issue
Block a user