mirror of
https://github.com/XRPLF/rippled.git
synced 2026-08-23 07:10:53 +00:00
chore: Enable most readability checks (#7772)
This commit is contained in:
@@ -464,12 +464,8 @@ same(STPathSet const& st1, Args const&... args)
|
||||
if (st1.size() != st2.size())
|
||||
return false;
|
||||
|
||||
for (auto const& p : st2)
|
||||
{
|
||||
if (std::ranges::find(st1, p) == st1.end())
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return std::ranges::all_of(
|
||||
st2, [&st1](auto const& p) { return std::ranges::find(st1, p) != st1.end(); });
|
||||
}
|
||||
|
||||
json::Value
|
||||
|
||||
@@ -326,13 +326,10 @@ AMM::expectAuctionSlot(std::vector<AccountID> const& authAccounts) const
|
||||
{
|
||||
return expectAuctionSlot(
|
||||
[&](std::uint32_t, std::optional<std::uint8_t>, IOUAmount const&, STArray const& accounts) {
|
||||
for (auto const& account : accounts)
|
||||
{
|
||||
if (std::ranges::find(authAccounts, account.getAccountID(sfAccount)) ==
|
||||
authAccounts.end())
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return std::ranges::all_of(accounts, [&](auto const& account) {
|
||||
return std::ranges::find(authAccounts, account.getAccountID(sfAccount)) !=
|
||||
authAccounts.end();
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user