mirror of
https://github.com/XRPLF/clio.git
synced 2026-10-01 09:28:09 +00:00
fix: Use .contains() method where available (#2277)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user