Update installer.ts

This commit is contained in:
Priya Gupta 2024-12-26 14:01:10 +05:30 committed by GitHub
parent 01bdbbf7b0
commit 6ef01d5b7e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -264,14 +264,8 @@ export class DotnetCoreInstaller {
): Promise<string> {
let response;
try {
core.info(
`${DotNetCoreIndexUrl} DotNetCoreIndexUrl`
);
response = await httpClient.getJson<any>(DotNetCoreIndexUrl);
} catch (error) {
core.info(
`${DotnetCoreIndexFallbackUrl} DotnetCoreIndexFallbackUrl`
);
response = await httpClient.getJson<any>(DotnetCoreIndexFallbackUrl);
}
const result = response.result || {};