mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-16 13:15:07 +00:00
refactor: Reducing duplicate code
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user