Avoid possible multiple enumerations in ImportModuleCommand.IsPs1xmlFileHelper_IsPresentInEntries (#26104)

This commit is contained in:
xtqqczze
2025-10-12 15:57:10 +05:00
committed by GitHub
parent 9fef026955
commit 659c73ffd3
@@ -1371,7 +1371,7 @@ namespace Microsoft.PowerShell.Commands
}
}
private bool IsPs1xmlFileHelper_IsPresentInEntries(RemoteDiscoveryHelper.CimModuleFile cimModuleFile, IEnumerable<string> manifestEntries)
private bool IsPs1xmlFileHelper_IsPresentInEntries(RemoteDiscoveryHelper.CimModuleFile cimModuleFile, List<string> manifestEntries)
{
const string ps1xmlExt = ".ps1xml";
string fileName = cimModuleFile.FileName;