diff --git a/__tests__/distributors/adopt-installer.test.ts b/__tests__/distributors/adopt-installer.test.ts index 6cff33a..f03a4eb 100644 --- a/__tests__/distributors/adopt-installer.test.ts +++ b/__tests__/distributors/adopt-installer.test.ts @@ -420,7 +420,7 @@ describe('findPackageForDownload', () => { }); it('version list is empty', async () => { - let spyHttpClient = jest.spyOn(HttpClient.prototype, 'getJson'); + const spyHttpClient = jest.spyOn(HttpClient.prototype, 'getJson'); spyHttpClient.mockImplementation((requestUrl, additionalHeaders) => { if (requestUrl.startsWith('https://api.adoptium.net/')) { diff --git a/src/distributions/adopt/installer.ts b/src/distributions/adopt/installer.ts index 5799798..11b373f 100644 --- a/src/distributions/adopt/installer.ts +++ b/src/distributions/adopt/installer.ts @@ -59,7 +59,7 @@ export class AdoptDistribution extends JavaBase { this.temurinDistribution != null ) { try { - let result = await this.temurinDistribution.findPackageForDownload( + const result = await this.temurinDistribution.findPackageForDownload( version );