Skip to content

Commit

Permalink
simplified logic statement
Browse files Browse the repository at this point in the history
  • Loading branch information
hhund committed Feb 19, 2024
1 parent 9f2dae0 commit 6ccd70d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ public SearchSetOrganization(int defaultPageCount)
protected Row toRow(ElementId id, Organization resource)
{
boolean active = resource.hasActiveElement() && resource.getActiveElement().hasValue()
? Boolean.TRUE.equals(resource.getActiveElement().getValue())
: false;
&& Boolean.TRUE.equals(resource.getActiveElement().getValue());

String identifier = getIdentifierValues(resource, Organization::hasIdentifier, Organization::getIdentifier,
NAMING_SYSTEM_ORGANIZATION_IDENTIFIER);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ public SearchSetOrganizationAffiliation(int defaultPageCount)
protected Row toRow(ElementId id, OrganizationAffiliation resource)
{
boolean active = resource.hasActiveElement() && resource.getActiveElement().hasValue()
? Boolean.TRUE.equals(resource.getActiveElement().getValue())
: false;
&& Boolean.TRUE.equals(resource.getActiveElement().getValue());

ElementId parentOrganization = ElementId.from(resource, OrganizationAffiliation::hasOrganization,
OrganizationAffiliation::getOrganization);
Expand Down

0 comments on commit 6ccd70d

Please sign in to comment.