delete code repeat and use variable

This commit is contained in:
r1tsuu 2023-03-02 23:34:01 +02:00
parent 6c9189da23
commit bbc0f1b2f3

View File

@ -904,7 +904,7 @@ class JavaGuard extends EventEmitter {
// If ARM JRE is not installed, AMD64 JRE still will run through Rosseta2
return amd64Path
}
return pathArr.find(({ isARM }) => !isARM).execPath
return amd64Path
} else {
return null
}