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

@@ -36,7 +36,7 @@ LedgerTypes::getLedgerEntryTypeFromStr(std::string const& entryName)
return map;
}();
if (kTYPE_MAP.find(entryName) == kTYPE_MAP.end())
if (!kTYPE_MAP.contains(entryName))
return ripple::ltANY;
return kTYPE_MAP.at(entryName);