Skip to content

Commit

Permalink
Tweak method name
Browse files Browse the repository at this point in the history
  • Loading branch information
Forgind committed Jun 15, 2021
1 parent b774338 commit 52389a2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions src/Tasks/AssemblyDependency/ReferenceTable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2667,12 +2667,12 @@ out ITaskItem[] copyLocalFiles
}
}

primaryFiles = NormalizeAsArray(primaryItems);
dependencyFiles = NormalizeAsArray(dependencyItems);
relatedFiles = NormalizeAsArray(relatedItems);
satelliteFiles = NormalizeAsArray(satelliteItems);
serializationAssemblyFiles = NormalizeAsArray(serializationAssemblyItems);
scatterFiles = NormalizeAsArray(scatterItems);
primaryFiles = NormalizePathsAsArray(primaryItems);
dependencyFiles = NormalizePathsAsArray(dependencyItems);
relatedFiles = NormalizePathsAsArray(relatedItems);
satelliteFiles = NormalizePathsAsArray(satelliteItems);
serializationAssemblyFiles = NormalizePathsAsArray(serializationAssemblyItems);
scatterFiles = NormalizePathsAsArray(scatterItems);

// Sort for stable outputs. (These came from a dictionary, which has undefined enumeration order.)
Array.Sort(primaryFiles, TaskItemSpecFilenameComparer.GenericComparer);
Expand All @@ -2687,7 +2687,7 @@ out ITaskItem[] copyLocalFiles
copyLocalFiles = copyLocalItems.ToArray();
}

internal static ITaskItem[] NormalizeAsArray(List<ITaskItem> items)
internal static ITaskItem[] NormalizePathsAsArray(List<ITaskItem> items)
{
ITaskItem[] arr = new ITaskItem[items.Count];
for (int i = 0; i < items.Count; i++)
Expand Down
2 changes: 1 addition & 1 deletion src/Tasks/AssemblyDependency/ResolveAssemblyReference.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1000,7 +1000,7 @@ public ITaskItem[] FilesWritten
{
if (_filesWrittenArray?.Length != _filesWritten.Count)
{
_filesWrittenArray = ReferenceTable.NormalizeAsArray(_filesWritten);
_filesWrittenArray = ReferenceTable.NormalizePathsAsArray(_filesWritten);
}
return _filesWrittenArray;
}
Expand Down

0 comments on commit 52389a2

Please sign in to comment.