Skip to content

Commit

Permalink
simplified some logic and removed repeat lines in different logic bra…
Browse files Browse the repository at this point in the history
…nches
  • Loading branch information
antonhibl committed May 22, 2023
1 parent 1da1422 commit 36f17cf
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions isis/src/tgo/apps/tgocassisstitch/tgocassisstitch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,19 +84,18 @@ namespace Isis {
foreach(QString frameKey, frameKeys) {
try {
QString frameIdentifier = frameKey.split("/").last();
FileName frameFileName;
if (frameletCubeName != "") {
FileName frameFileName(outputPrefBaseName +
frameFileName = FileName(outputPrefBaseName +
frameletCubeName +
outputSuffBaseName + ".cub");
stitchFrame( frameMap.values(frameKey), frameFileName );
stitchProgress.CheckStatus();
} else {
FileName frameFileName(outputPrefBaseName +
frameFileName = FileName(outputPrefBaseName +
frameIdentifier +
outputSuffBaseName + ".cub");
stitchFrame( frameMap.values(frameKey), frameFileName );
stitchProgress.CheckStatus();
}
stitchFrame( frameMap.values(frameKey), frameFileName );
stitchProgress.CheckStatus();
}
catch (IException &e) {
QString msg = "Failed stitch frame for observation ["
Expand Down

0 comments on commit 36f17cf

Please sign in to comment.