Cleanup (formatting)

This commit is contained in:
Roman Shevchenko
2016-08-10 16:02:48 +02:00
parent 3bd0a66b14
commit 24908d52b8
@@ -400,9 +400,12 @@ public class GeneralCommandLine implements UserDataHolder {
environment.putAll(myEnvParams);
}
}
File workDirectory = getWorkDirectory();
if (SystemInfo.isUnix && workDirectory != null) {
environment.put("PWD", FileUtil.toSystemDependentName(workDirectory.getAbsolutePath()));
if (SystemInfo.isUnix) {
File workDirectory = getWorkDirectory();
if (workDirectory != null) {
environment.put("PWD", FileUtil.toSystemDependentName(workDirectory.getAbsolutePath()));
}
}
}