Skip to content

Commit

Permalink
Remove redundant nil check.
Browse files Browse the repository at this point in the history
  • Loading branch information
gigerdo committed Sep 17, 2024
1 parent 3717fbf commit 8c1a34b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion ec/ecresource/organizationresource/mapper_to_model.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ func nilToEmpty(id *string) string {

func organizationRoleApiToModel(member models.OrganizationMembership) types.String {
if member.RoleAssignments != nil &&
member.RoleAssignments.Organization != nil &&
len(member.RoleAssignments.Organization) > 0 &&
member.RoleAssignments.Organization[0] != nil &&
member.RoleAssignments.Organization[0].RoleID != nil {
Expand Down

0 comments on commit 8c1a34b

Please sign in to comment.