Skip to content

Commit

Permalink
Simplify code with ternary if
Browse files Browse the repository at this point in the history
  • Loading branch information
tdrwenski committed Jul 6, 2023
1 parent 1a474f7 commit f9dccb7
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -806,10 +806,7 @@ private void readDim(Group.Builder groupBuilder, @Nullable Group refGroup, Eleme
return;
}

String nameInFile = dimElem.getAttributeValue("orgName");
if (nameInFile == null) {
nameInFile = name;
}
String nameInFile = dimElem.getAttributeValue("orgName") != null ? dimElem.getAttributeValue("orgName") : name;

// LOOK this is wrong, groupBuilder may already have the dimension.
// see if it already exists
Expand Down

0 comments on commit f9dccb7

Please sign in to comment.