1
0
Fork 0
mirror of synced 2026-06-05 18:28:19 +00:00

Update installer.ts

This commit is contained in:
Priya Gupta 2024-12-26 14:01:10 +05:30 committed by GitHub
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 || {};