Skip to content

Commit

Permalink
Refactor the code
Browse files Browse the repository at this point in the history
Co-authored-by: Anuradha Karunarathna <anuradha199528@gmail.com>
  • Loading branch information
asha15 and AnuradhaSK committed Sep 15, 2024
1 parent 8b82553 commit c5cf416
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,8 @@ public int getCountOfDiscoverableApplications(String filter, String tenantDomain
if (ApplicationMgtUtil.isSubOrg(tenantDomain)) {
String primaryOrgId = ApplicationMgtUtil.getParentOrgId(tenantDomain);
return appDAO.getCountOfDiscoverableAppsFromRootAndSubOrg(filter, tenantDomain, primaryOrgId);
} else {
return appDAO.getCountOfDiscoverableApplications(filter, tenantDomain);
}
return appDAO.getCountOfDiscoverableApplications(filter, tenantDomain);
} catch (OrganizationManagementException e) {
throw new IdentityApplicationManagementException(e.getErrorMessage(), e);
}
Expand Down

0 comments on commit c5cf416

Please sign in to comment.