mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
code style: two subsequent ifs merged to reduce inner indent
This commit is contained in:
@@ -116,14 +116,12 @@ public final class ScriptRunnerUtil {
|
||||
@Nullable Charset charset) throws ExecutionException {
|
||||
if (SystemInfo.isMac) {
|
||||
File exeFile = new File(exePath);
|
||||
if (!exeFile.isAbsolute()) {
|
||||
if (!exePath.contains(File.separator)) {
|
||||
File originalResolvedExeFile = PathEnvironmentVariableUtil.findInOriginalPath(exePath);
|
||||
if (originalResolvedExeFile == null) {
|
||||
File resolvedExeFile = PathEnvironmentVariableUtil.findInPath(exePath);
|
||||
if (resolvedExeFile != null) {
|
||||
exePath = resolvedExeFile.getAbsolutePath();
|
||||
}
|
||||
if (!exeFile.isAbsolute() && !exePath.contains(File.separator)) {
|
||||
File originalResolvedExeFile = PathEnvironmentVariableUtil.findInOriginalPath(exePath);
|
||||
if (originalResolvedExeFile == null) {
|
||||
File resolvedExeFile = PathEnvironmentVariableUtil.findInPath(exePath);
|
||||
if (resolvedExeFile != null) {
|
||||
exePath = resolvedExeFile.getAbsolutePath();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user