--- /home/topic/Projects/Java/Kaffe/projects/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/dotnet/Ilasm.java.old	Thu Jun 13 16:49:34 2002
+++ /home/topic/Projects/Java/Kaffe/projects/jakarta-ant/src/main/org/apache/tools/ant/taskdefs/optional/dotnet/Ilasm.java	Thu Jun 13 16:50:43 2002
@@ -227,9 +227,7 @@
     public void setTargetType(String targetType)
              throws BuildException {
         this.targetType = targetType.toLowerCase();
-        if (targetType.equals("exe") || targetType.equals("library")) {
-            targetType = targetType;
-        } else {
+        if (!(targetType.equals("exe") || targetType.equals("library"))) {
             throw new BuildException("targetType " + targetType + " is not a valid type");
         }
     }
