Remove try catch from HTTP request

- Processing it wasn't adding any added value.
This commit is contained in:
José Simões 2022-12-27 13:20:28 +00:00
Родитель d9d29a036e
Коммит 2abcb38e1b
1 изменённых файлов: 1 добавлений и 15 удалений

Просмотреть файл

@ -32,21 +32,7 @@ if($env:GITHUB_AUTH_TOKEN)
$webClient.Headers.Add("Authorization", $auth)
}
try
{
$releaseList = $webClient.DownloadString('https://api.github.com/repos/nanoframework/nf-Visual-Studio-extension/releases?per_page=100')
}
catch
{
$result = $_.Exception.Response.GetResponseStream()
$reader = New-Object System.IO.StreamReader($result)
$reader.BaseStream.Position = 0
$reader.DiscardBufferedData()
$responseBody = $reader.ReadToEnd()
Write-Output "🛑 performing request: $responseBody"
exit 1
}
$releaseList = $webClient.DownloadString('https://api.github.com/repos/nanoframework/nf-Visual-Studio-extension/releases?per_page=100')
if($releaseList -match '\"(?<VS2022_version>v2022\.\d+\.\d+\.\d+)\"')
{