Skip to content

Commit

Permalink
Merge pull request #3226 from atlanhq/connectionadmins
Browse files Browse the repository at this point in the history
DG-1374 PR review added
  • Loading branch information
arpit-at authored Jun 10, 2024
2 parents ecfc459 + d3f02d3 commit 0585fc1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ private void processUpdateConnection(EntityMutationContext context, AtlasStruct
// if the list is empty -> we want to remove all elements
// if the list is non-empty -> we want to replace
private List<String> determineFinalState(List<String> newAdmins, List<String> currentAdmins) {
return newAdmins == null ? currentAdmins : newAdmins.isEmpty() ? new ArrayList<>() : newAdmins;
return newAdmins == null ? currentAdmins : newAdmins;
}

private boolean allEmpty(List<String>... lists) {
Expand Down

0 comments on commit 0585fc1

Please sign in to comment.