From c2c4bc613c3b5749cc33d7476eae01f0d786988d Mon Sep 17 00:00:00 2001 From: John Cortell Date: Wed, 20 Aug 2008 20:57:26 +0000 Subject: [PATCH] Slight organizational improvement to last commit (consolidate two checks into one). --- .../src/org/eclipse/cdt/launch/ui/CMainTab.java | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/ui/CMainTab.java b/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/ui/CMainTab.java index 93515a6d554..6917f7d1cbe 100644 --- a/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/ui/CMainTab.java +++ b/launch/org.eclipse.cdt.launch/src/org/eclipse/cdt/launch/ui/CMainTab.java @@ -559,15 +559,10 @@ 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; - } + } + if (!exePath.toFile().exists()) { + setErrorMessage(LaunchMessages.getString("CMainTab.Program_does_not_exist")); //$NON-NLS-1$ + return false; } try { if (!isBinary(project, exePath)) {