mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Fixed unreachable code issue
This commit is contained in:
@@ -94,7 +94,7 @@ namespace System.Management.Automation
|
||||
// On non-Windows platform Set/Get-ExecutionPolicy return
|
||||
// Operation is not supported on this platform.
|
||||
return;
|
||||
#endif
|
||||
#else
|
||||
|
||||
|
||||
#if DEBUG
|
||||
@@ -160,6 +160,7 @@ namespace System.Management.Automation
|
||||
throw new PSSecurityException(AuthorizationManagerBase.AuthorizationManagerDefaultFailureReason);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -435,7 +435,7 @@ namespace System.Management.Automation
|
||||
// There is no signature support on non-Windows platforms (yet), when
|
||||
// execution reaches here, we are sure the file is under product folder
|
||||
return true;
|
||||
#endif
|
||||
#else
|
||||
// Check the file signature
|
||||
Signature fileSignature = SignatureHelper.GetSignature(file, null);
|
||||
if ((fileSignature != null) && (fileSignature.IsOSBinary))
|
||||
@@ -455,6 +455,7 @@ namespace System.Management.Automation
|
||||
}
|
||||
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
#if !CORECLR
|
||||
|
||||
Reference in New Issue
Block a user