mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-26 05:55:51 +00:00
Cleanup.
This commit is contained in:
@@ -142,7 +142,7 @@ STAmount::STAmount(SField::ref n, const Json::Value& v)
|
||||
std::vector<std::string> elements;
|
||||
boost::split(elements, val, boost::is_any_of("\t\n\r ,/"));
|
||||
|
||||
if ((elements.size() < 0) || (elements.size() > 3))
|
||||
if (elements.size() > 3)
|
||||
throw std::runtime_error("invalid amount string");
|
||||
|
||||
value = elements[0];
|
||||
|
||||
@@ -23,7 +23,7 @@ public:
|
||||
|
||||
KeyCache(const std::string& name, int size = 0, int age = 120) : mName(name), mTargetSize(size), mTargetAge(age)
|
||||
{
|
||||
assert((mTargetSize >= 0) && (mTargetAge > 2));
|
||||
assert((size >= 0) && (age > 2));
|
||||
}
|
||||
|
||||
void getSize()
|
||||
|
||||
Reference in New Issue
Block a user