mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Removed language if statement no longer needed due to compiler if statement
Clarified comment
This commit is contained in:
@@ -87,14 +87,13 @@ namespace System.Management.Automation
|
||||
CommandOrigin origin,
|
||||
PSHost host)
|
||||
{
|
||||
#if LINUX
|
||||
// TODO:PSL this is a workaround since the exception below
|
||||
// hides the internal issue of what's going on in terms of
|
||||
// execution policy.
|
||||
#if LINUX
|
||||
if (Platform.IsCore)
|
||||
{
|
||||
return;
|
||||
}
|
||||
// execution policy.
|
||||
// On non-Windows platform Set/Get-ExecutionPolicy return
|
||||
// Operation is not supported on this platform.
|
||||
return;
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
@@ -431,13 +431,10 @@ namespace System.Management.Automation
|
||||
return false;
|
||||
}
|
||||
|
||||
#if LINUX
|
||||
// There is no signature support on non-Windows platforms (yet), when
|
||||
// execution reaches here, we are sure the file is under product folder
|
||||
#if LINUX
|
||||
if (Platform.IsCore)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return true;
|
||||
#endif
|
||||
// Check the file signature
|
||||
Signature fileSignature = SignatureHelper.GetSignature(file, null);
|
||||
|
||||
Reference in New Issue
Block a user