diff --git a/dist/index.js b/dist/index.js index f698f5ee8..6370ee63d 100644 --- a/dist/index.js +++ b/dist/index.js @@ -379,13 +379,7 @@ class DotnetCoreInstaller { } getReleasesJsonUrl(httpClient, versionParts) { return __awaiter(this, void 0, void 0, function* () { - let response; - try { - response = yield httpClient.getJson(DotNetCoreIndexUrl); - } - catch (error) { - response = yield httpClient.getJson(DotnetCoreIndexFallbackUrl); - } + const response = yield httpClient.getJson(DotNetCoreIndexUrl); const result = response.result || {}; let releasesInfo = result['releases-index']; releasesInfo = releasesInfo.filter((info) => { @@ -410,7 +404,6 @@ class DotnetCoreInstaller { } exports.DotnetCoreInstaller = DotnetCoreInstaller; const DotNetCoreIndexUrl = 'https://builds.dotnet.microsoft.com/dotnet/release-metadata/releases-index.json'; -const DotnetCoreIndexFallbackUrl = 'https://dotnetcli.blob.core.windows.net/dotnet/release-metadata/releases-index.json'; /***/ }), diff --git a/src/installer.ts b/src/installer.ts index f3fce5619..d0a7f5e2a 100644 --- a/src/installer.ts +++ b/src/installer.ts @@ -262,12 +262,7 @@ export class DotnetCoreInstaller { httpClient: hc.HttpClient, versionParts: string[] ): Promise { - let response; - try { - response = await httpClient.getJson(DotNetCoreIndexUrl); - } catch (error) { - response = await httpClient.getJson(DotnetCoreIndexFallbackUrl); - } + const response = await httpClient.getJson(DotNetCoreIndexUrl); const result = response.result || {}; let releasesInfo: any[] = result['releases-index']; @@ -307,6 +302,3 @@ export class DotnetCoreInstaller { const DotNetCoreIndexUrl: string = 'https://builds.dotnet.microsoft.com/dotnet/release-metadata/releases-index.json'; - -const DotnetCoreIndexFallbackUrl: string = - 'https://dotnetcli.blob.core.windows.net/dotnet/release-metadata/releases-index.json';