Fixed unreachable code issue

This commit is contained in:
Travis Plunk
2016-07-12 12:11:07 -07:00
parent 9a9ff6f766
commit dc632bff96
2 changed files with 4 additions and 2 deletions
@@ -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