1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-19 06:55:23 +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,16 +559,11 @@ public class CMainTab extends CLaunchConfigurationTab {
}
exePath = location.append(name);
}
if (!exePath.toFile().exists()) {
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 {
if (!isBinary(project, exePath)) {
setErrorMessage(LaunchMessages.getString("CMainTab.Program_is_not_a_recongnized_executable")); //$NON-NLS-1$