DomainTree: minor refactoring done.

This commit is contained in:
Shreyas Zare
2022-02-27 18:05:39 +05:30
parent f5d25763be
commit ccb95ebb85

View File

@@ -192,9 +192,9 @@ namespace DnsServerCore.Dns.Trees
public override bool TryRemove(string key, out T value)
{
if (TryRemove(key, out value, out Node closestNode))
if (TryRemove(key, out value, out Node currentNode))
{
closestNode.CleanThisBranch();
currentNode.CleanThisBranch();
return true;
}