remove fallback in index.js

This commit is contained in:
Zachary Taylor 2025-01-02 01:51:42 +00:00
parent 2098132e3c
commit 09ce5821b4

9
dist/setup/index.js vendored
View File

@ -71264,13 +71264,8 @@ class DotnetVersionResolver {
allowRetries: true, allowRetries: true,
maxRetries: 3 maxRetries: 3
}); });
let response;
try { const response = yield httpClient.getJson(DotnetVersionResolver.DotNetCoreIndexUrl);
response = yield httpClient.getJson(DotnetVersionResolver.DotNetCoreIndexUrl);
}
catch (error) {
response = yield httpClient.getJson(DotnetVersionResolver.DotnetCoreIndexFallbackUrl);
}
const result = response.result || {}; const result = response.result || {};
const releasesInfo = result['releases-index']; const releasesInfo = result['releases-index'];
const releaseInfo = releasesInfo.find(info => { const releaseInfo = releasesInfo.find(info => {