mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-14 04:58:33 +00:00
refactor: Reducing duplicate code
This commit is contained in:
parent
d41203b856
commit
4a203e2449
1 changed files with 1 additions and 1 deletions
|
|
@ -109,7 +109,7 @@ namespace ICD.Common.Utils
|
||||||
if (getChildren == null)
|
if (getChildren == null)
|
||||||
throw new ArgumentNullException("getChildren");
|
throw new ArgumentNullException("getChildren");
|
||||||
|
|
||||||
return BreadthFirstSearchPath(root, child, getChildren) != null;
|
return BreadthFirstSearch(root, child, getChildren, EqualityComparer<T>.Default);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue