Skip to content

Commit

Permalink
Remove redundant if clause.
Browse files Browse the repository at this point in the history
  • Loading branch information
fbarthez committed Jan 6, 2016
1 parent bf944d4 commit 781329b
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,12 +195,10 @@ public Boolean showRemoveButton() {
EORelationship relationship = masterEntity.relationshipNamed(dds.detailKey());
EORelationship reverseRelationship = relationship.inverseRelationship();
if(isRemoveable && !relationship.ownsDestination()) {
if (!relationship.ownsDestination()) {
if (reverseRelationship == null) {
_showRemoveButton = Boolean.TRUE;
} else {
_showRemoveButton = !reverseRelationship.isMandatory();
}
if (reverseRelationship == null) {
_showRemoveButton = Boolean.TRUE;
} else {
_showRemoveButton = !reverseRelationship.isMandatory();
}
} else {
_showRemoveButton = Boolean.FALSE;
Expand Down

0 comments on commit 781329b

Please sign in to comment.