mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 20:56:02 +00:00
1 parent
72608fb829
commit
fbca9141ec
1 file changed
+1
-1
@@ -292,7 +292,7 @@ namespace System.Management.Automation
|
||||
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Reliability", "CA2001:AvoidCallingProblematicMethods")]
|
||||
private static Signature GetSignatureFromCatalog(string filename)
|
||||
{
|
||||
if (Signature.CatalogApiAvailable.HasValue && !Signature.CatalogApiAvailable.Value)
|
||||
if (Signature.CatalogApiAvailable.HasValue && !Signature.CatalogApiAvailable.GetValueOrDefault())
|
||||
{
|
||||
// Signature.CatalogApiAvailable would be set to false the first time it is detected that
|
||||
// WTGetSignatureInfo API does not exist on the platform, or if the API is not functional on the target platform.
|
||||
|
||||
Reference in new issue
Block a user