fix: Use .contains() method where available (#2277)

This commit is contained in:
Ayaz Salikhov
2025-07-01 18:28:12 +01:00
committed by GitHub
parent 8abc9c6645
commit 5cdd8a642f
4 changed files with 8 additions and 10 deletions

View File

@@ -280,7 +280,7 @@ TransactionFeed::pub(
data->getFieldAmount(ripple::sfTakerPays).issue(),
(*data)[~ripple::sfDomainID]
};
if (affectedBooks.find(book) == affectedBooks.end()) {
if (!affectedBooks.contains(book)) {
affectedBooks.insert(book);
}
}