refactor: Reducing duplicate code

This commit is contained in:
Chris Cameron
2019-01-27 17:55:47 -05:00
parent d41203b856
commit 4a203e2449

View File

@@ -109,7 +109,7 @@ namespace ICD.Common.Utils
if (getChildren == null)
throw new ArgumentNullException("getChildren");
return BreadthFirstSearchPath(root, child, getChildren) != null;
return BreadthFirstSearch(root, child, getChildren, EqualityComparer<T>.Default);
}
/// <summary>