mirror of https://github.com/CrowCpp/Crow.git
removed unnecessary boolean
This commit is contained in:
parent
603dbe3850
commit
6d6fbe2385
|
@ -740,12 +740,7 @@ namespace crow
|
|||
{
|
||||
if (node->children.empty())
|
||||
return;
|
||||
bool mergeWithChild = true;
|
||||
if (!node->IsSimpleNode() /*|| node->children[0]->param != ParamType::MAX*/)
|
||||
{
|
||||
mergeWithChild = false;
|
||||
}
|
||||
if (mergeWithChild)
|
||||
if (node->IsSimpleNode())
|
||||
{
|
||||
Node* child_temp = node->children[0];
|
||||
node->key = node->key + child_temp->key;
|
||||
|
|
Loading…
Reference in New Issue