From 5321a4dff097f94f22687359df1d5e15ab5eb160 Mon Sep 17 00:00:00 2001 From: John Oliver <1615532+johnoliver@users.noreply.github.com> Date: Wed, 18 Oct 2023 12:29:55 +0100 Subject: [PATCH] Fix linter issues --- __tests__/distributors/adopt-installer.test.ts | 2 +- src/distributions/adopt/installer.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 );