1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-19 23:15:24 +02:00

Slight organizational improvement to last commit (consolidate two checks into one).

This commit is contained in:
John Cortell 2008-08-20 20:57:26 +00:00
parent b9f5b7a7d4
commit c2c4bc613c

View file

@ -559,15 +559,10 @@ public class CMainTab extends CLaunchConfigurationTab {
} }
exePath = location.append(name); exePath = location.append(name);
if (!exePath.toFile().exists()) { }
setErrorMessage(LaunchMessages.getString("CMainTab.Program_does_not_exist")); //$NON-NLS-1$ if (!exePath.toFile().exists()) {
return false; setErrorMessage(LaunchMessages.getString("CMainTab.Program_does_not_exist")); //$NON-NLS-1$
} return false;
} else {
if (!exePath.toFile().exists()) {
setErrorMessage(LaunchMessages.getString("CMainTab.Program_does_not_exist")); //$NON-NLS-1$
return false;
}
} }
try { try {
if (!isBinary(project, exePath)) { if (!isBinary(project, exePath)) {