From d98fd1728d7a2792d8828320cf6968e749148488 Mon Sep 17 00:00:00 2001 From: Dmitry Shibanov Date: Wed, 20 Dec 2023 16:31:19 +0100 Subject: [PATCH] run format and build --- dist/setup/index.js | 3 ++- src/distributions/microsoft/installer.ts | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/dist/setup/index.js b/dist/setup/index.js index d09d9409..d6147377 100644 --- a/dist/setup/index.js +++ b/dist/setup/index.js @@ -123970,7 +123970,8 @@ class MicrosoftDistributions extends base_installer_1.JavaBase { let javaArchivePath = yield tc.downloadTool(javaRelease.url); core.info(`Extracting Java archive...`); const extension = (0, util_1.getDownloadArchiveExtension)(); - if (process.platform === 'win32' && (this.architecture === 'arm64' || this.architecture === 'aarch64')) { + if (process.platform === 'win32' && + (this.architecture === 'arm64' || this.architecture === 'aarch64')) { const javaArchivePathRenamed = `${javaArchivePath}.zip`; yield fs_1.default.renameSync(javaArchivePath, javaArchivePathRenamed); javaArchivePath = javaArchivePathRenamed; diff --git a/src/distributions/microsoft/installer.ts b/src/distributions/microsoft/installer.ts index 22240c0b..1b68ef3c 100644 --- a/src/distributions/microsoft/installer.ts +++ b/src/distributions/microsoft/installer.ts @@ -30,7 +30,10 @@ export class MicrosoftDistributions extends JavaBase { core.info(`Extracting Java archive...`); const extension = getDownloadArchiveExtension(); - if (process.platform === 'win32' && (this.architecture === 'arm64' || this.architecture === 'aarch64')) { + if ( + process.platform === 'win32' && + (this.architecture === 'arm64' || this.architecture === 'aarch64') + ) { const javaArchivePathRenamed = `${javaArchivePath}.zip`; await fs.renameSync(javaArchivePath, javaArchivePathRenamed); javaArchivePath = javaArchivePathRenamed;