mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-15 20:54:58 +00:00
remove redundant toarray
This commit is contained in:
@@ -166,7 +166,7 @@ namespace ICD.Common.Utils
|
|||||||
destinationsToBeProcessed.Where(destination => comparer.Equals(closureNode, destination)))
|
destinationsToBeProcessed.Where(destination => comparer.Equals(closureNode, destination)))
|
||||||
{
|
{
|
||||||
destinationsProcessed.Add(destination);
|
destinationsProcessed.Add(destination);
|
||||||
pathsToReturn.Add(destination, GetPath(destination, root, nodeParents, comparer).Reverse().ToArray());
|
pathsToReturn.Add(destination, GetPath(destination, root, nodeParents, comparer).Reverse());
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (T destination in destinationsProcessed)
|
foreach (T destination in destinationsProcessed)
|
||||||
|
|||||||
Reference in New Issue
Block a user