Removed language if statement no longer needed due to compiler if statement

Clarified comment
This commit is contained in:
Travis Plunk
2016-07-12 11:27:31 -07:00
parent 1daa1073d8
commit 9a9ff6f766
2 changed files with 7 additions and 11 deletions
@@ -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);