From ad7224e6387675c318bbca8f5a0a6318d524944c Mon Sep 17 00:00:00 2001 From: r1tsuu Date: Fri, 3 Mar 2023 01:06:16 +0200 Subject: [PATCH] fix comment --- app/assets/js/assetguard.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/assets/js/assetguard.js b/app/assets/js/assetguard.js index b1339e8f..b1ce4a96 100644 --- a/app/assets/js/assetguard.js +++ b/app/assets/js/assetguard.js @@ -858,7 +858,7 @@ class JavaGuard extends EventEmitter { /** * Attempts to find a valid x64 installation of Java on MacOS. - * If using Apple Silicon + * If using ARM arch tries to get ARM Java version first. * The system JVM directory is scanned for possible installations. * The JAVA_HOME enviroment variable and internet plugins directory * are also scanned and validated. @@ -901,8 +901,7 @@ class JavaGuard extends EventEmitter { let armPath = pathArr.find(({ isARM }) => isARM).execPath if (process.arch.includes("arm")) { if (armPath) return armPath - // If ARM JRE is not installed, AMD64 JRE still will run through Rosseta2 - return amd64Path + return null } return amd64Path } else {