Remove unneeded try-catch in build.psm1 (#4328)

This commit is contained in:
Travis Plunk 2017-07-24 15:26:04 -07:00 committed by Dongbo Wang
parent 905e6978e6
commit d24d1634ba

View file

@ -22,14 +22,10 @@ function Get-EnvironmentInformation
$environment += @{'IsOSX' = $Runtime::IsOSPlatform($OSPlatform::OSX)}
$environment += @{'IsWindows' = $Runtime::IsOSPlatform($OSPlatform::Windows)}
} catch {
# If these are already set, then they're read-only and we're done
try {
$environment += @{'IsCoreCLR' = $false}
$environment += @{'IsLinux' = $false}
$environment += @{'IsOSX' = $false}
$environment += @{'IsWindows' = $true}
}
catch { }
$environment += @{'IsCoreCLR' = $false}
$environment += @{'IsLinux' = $false}
$environment += @{'IsOSX' = $false}
$environment += @{'IsWindows' = $true}
}
if ($Environment.IsWindows)