JAL-1136 fix logic for recovering AACons params
authorjprocter <jprocter@compbio.dundee.ac.uk>
Fri, 3 Aug 2012 16:26:27 +0000 (17:26 +0100)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Fri, 3 Aug 2012 16:26:27 +0000 (17:26 +0100)
src/jalview/gui/Jalview2XML.java

index 08deba4..4c042b3 100644 (file)
@@ -1345,15 +1345,14 @@ public class Jalview2XML
         }
         AAConsSettings settings = new AAConsSettings(calcIdParam.isAutoUpdate(), service, parmSet, argList);
         av.setCalcIdSettingsFor(calcIdParam.getCalcId(), settings, calcIdParam.isNeedsUpdate());
+        return true;
       } else {
         warn("Cannot resolve a service for the parameters used in this project. Try configuring a JABAWS server.");
         return false;
       }
     }
-    else
-      throw new Error("Unsupported Version for calcIdparam "
-              + calcIdParam.toString());
-    return false;
+    throw new Error("Unsupported Version for calcIdparam "
+            + calcIdParam.toString());
   }
   /**
    * External mapping between jalview objects and objects yielding a valid and