Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Swanson2004-05-05 20:39:28 +0000
committerDarin Swanson2004-05-05 20:39:28 +0000
commitc8ef21e647d7d933d5813b821db32269539c9c7a (patch)
tree5bf1721582e84e7f5af82d34171c0375baca4a0b /org.eclipse.ui.externaltools
parentaa81f37e5726d4fdf9d742bc74f592126a729bf0 (diff)
downloadeclipse.platform.debug-c8ef21e647d7d933d5813b821db32269539c9c7a.tar.gz
eclipse.platform.debug-c8ef21e647d7d933d5813b821db32269539c9c7a.tar.xz
eclipse.platform.debug-c8ef21e647d7d933d5813b821db32269539c9c7a.zip
Removed unncessary else block
Diffstat (limited to 'org.eclipse.ui.externaltools')
-rw-r--r--org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/launchConfigurations/ExternalToolsUtil.java15
1 files changed, 7 insertions, 8 deletions
diff --git a/org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/launchConfigurations/ExternalToolsUtil.java b/org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/launchConfigurations/ExternalToolsUtil.java
index 7f2595fe9..9707b8fce 100644
--- a/org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/launchConfigurations/ExternalToolsUtil.java
+++ b/org.eclipse.ui.externaltools/External Tools Base/org/eclipse/ui/externaltools/internal/launchConfigurations/ExternalToolsUtil.java
@@ -82,10 +82,10 @@ public class ExternalToolsUtil {
File file = new File(expandedLocation);
if (file.isFile()) {
return new Path(expandedLocation);
- } else {
- String msg = MessageFormat.format(ExternalToolsLaunchConfigurationMessages.getString("ExternalToolsUtil.invalidLocation_{0}"), new Object[] { configuration.getName()}); //$NON-NLS-1$
- abort(msg, null, 0);
- }
+ }
+
+ String msg = MessageFormat.format(ExternalToolsLaunchConfigurationMessages.getString("ExternalToolsUtil.invalidLocation_{0}"), new Object[] { configuration.getName()}); //$NON-NLS-1$
+ abort(msg, null, 0);
}
}
// execution will not reach here
@@ -127,10 +127,9 @@ public class ExternalToolsUtil {
File path = new File(expandedLocation);
if (path.isDirectory()) {
return new Path(expandedLocation);
- } else {
- String msg = MessageFormat.format(ExternalToolsLaunchConfigurationMessages.getString("ExternalToolsUtil.invalidDirectory_{0}"), new Object[] { expandedLocation, configuration.getName()}); //$NON-NLS-1$
- abort(msg, null, 0);
- }
+ }
+ String msg = MessageFormat.format(ExternalToolsLaunchConfigurationMessages.getString("ExternalToolsUtil.invalidDirectory_{0}"), new Object[] { expandedLocation, configuration.getName()}); //$NON-NLS-1$
+ abort(msg, null, 0);
}
}
return null;

Back to the top