mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Run Codeformatter for SMA (#9402)
This commit is contained in:
@@ -166,18 +166,18 @@ namespace System.Management.Automation
|
||||
// This is done after the version check filtering to ensure we do not remove later version files.
|
||||
HashSet<string> fileNameHash = new HashSet<string>();
|
||||
|
||||
foreach(var file in filesMatched)
|
||||
foreach (var file in filesMatched)
|
||||
{
|
||||
string fileName = Path.GetFileName(file);
|
||||
|
||||
if(!fileNameHash.Contains(fileName))
|
||||
if (!fileNameHash.Contains(fileName))
|
||||
{
|
||||
fileNameHash.Add(fileName);
|
||||
}
|
||||
else
|
||||
{
|
||||
// If the file need to be removed, add it to matchedFilesToRemove, if not already present.
|
||||
if(!matchedFilesToRemove.Contains(file))
|
||||
if (!matchedFilesToRemove.Contains(file))
|
||||
{
|
||||
matchedFilesToRemove.Add(file);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user