Remove storage account fallback logic (v1)

This commit is contained in:
Zachary Taylor
2025-01-02 00:47:52 +00:00
parent 71a4fd9b27
commit 0d16f91084
2 changed files with 4 additions and 18 deletions

View File

@@ -261,12 +261,8 @@ export class DotnetCoreInstaller {
httpClient: hc.HttpClient,
versionParts: string[]
): Promise<string> {
let response;
try {
response = await httpClient.getJson<any>(DotNetCoreIndexUrl);
} catch (error) {
response = await httpClient.getJson<any>(DotnetCoreIndexFallbackUrl);
}
const response = await httpClient.getJson<any>(DotNetCoreIndexUrl);
const result = response.result || {};
let releasesInfo: any[] = result['releases-index'];
@@ -306,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';