Commit 4acba282 authored by Kaitlyn Lee's avatar Kaitlyn Lee
Browse files

Removed unreachable code

parent 5e4462ce
Loading
Loading
Loading
Loading
+10 −14
Original line number Diff line number Diff line
@@ -34,16 +34,12 @@ void IsisMain() {
  bool WriteObservation = ui.GetBoolean("OBSERVATION");

  QString format = ui.GetString("FORMAT");
  bool pvl = true;
  bool pvl;
  if (format == "PVL") {
    pvl = true;
  }
  else if (format == "FLAT") {
    pvl = false;
  }
  else {
    QString msg = "Invalid format QString [" + format + "]";
    throw IException(IException::User, msg, _FILEINFO_);
    pvl = false;
  }

  // Extract label from cube file
+18 −14
Original line number Diff line number Diff line
@@ -42,6 +42,10 @@
      Added FORMAT option to choose between PVL and FLAT format. Effects output
      file only, default is still PVL.
    </change>
    <change name="Kaitlyn Lee" date="2018-01-17">
      Removed unreachable else clause that assumed more than two options are
      allowed to be entered for the parameter FORMAT.
    </change>
  </history>

  <groups>