mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Regular expressions are very Zen.
It always matches something, even if that something is nothing. Nothing is a form of something.
This commit is contained in:
@@ -104,7 +104,7 @@ void UniqueNodeList::trustedLoad()
|
||||
{
|
||||
RippleAddress a = RippleAddress::createNodePublic(match[1]);
|
||||
if (a.isValid())
|
||||
sClusterNodes.insert(std::make_pair(a, (match.size() > 1) ? match[2] : std::string("")));
|
||||
sClusterNodes.insert(std::make_pair(a, match[2]));
|
||||
}
|
||||
else
|
||||
cLog(lsWARNING) << "Entry in cluster list invalid: '" << c << "'";
|
||||
|
||||
Reference in New Issue
Block a user