removed unnecessary boolean

This commit is contained in:
The-EDev 2021-07-19 00:01:20 +03:00
parent 603dbe3850
commit 6d6fbe2385
1 changed files with 1 additions and 6 deletions

View File

@ -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;