Skip to content

Commit

Permalink
- Fix integration test.
Browse files Browse the repository at this point in the history
  • Loading branch information
rathnapandi committed Oct 23, 2024
1 parent 0fc97ff commit 007b472
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,11 @@ public void execute(APIChangeState changes) throws AppException {

public List<ClientApplication> keepApplicationFromDevelopmentOrg(List<ClientApplication> applications, Organization developmentOrg) {
List<ClientApplication> applicationsToKeep = new ArrayList<>();
for(ClientApplication app : applications) {
if(app.getOrganization().getName().equals(developmentOrg.getName())) {
applicationsToKeep.add(app);
if(applications != null) {
for (ClientApplication app : applications) {
if (app.getOrganization().getName().equals(developmentOrg.getName())) {
applicationsToKeep.add(app);
}
}
}
return applicationsToKeep;
Expand Down

0 comments on commit 007b472

Please sign in to comment.