Skip to content

Commit

Permalink
Appease the linter
Browse files Browse the repository at this point in the history
  • Loading branch information
kimorris27 committed May 31, 2024
1 parent 76aba5c commit 492b0c2
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions pkg/api/admin/platformworkloadidentityroleset_convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,7 @@ func (c platformWorkloadIdentityRoleSetConverter) ToExternal(s *api.PlatformWork
ServiceAccounts: make([]string, 0, len(r.ServiceAccounts)),
}

for _, sa := range r.ServiceAccounts {
role.ServiceAccounts = append(role.ServiceAccounts, sa)
}
role.ServiceAccounts = append(role.ServiceAccounts, r.ServiceAccounts...)

out.Properties.PlatformWorkloadIdentityRoles = append(out.Properties.PlatformWorkloadIdentityRoles, role)
}
Expand Down Expand Up @@ -70,9 +68,7 @@ func (c platformWorkloadIdentityRoleSetConverter) ToInternal(_new interface{}, o
ServiceAccounts: make([]string, 0, len(r.ServiceAccounts)),
}

for _, sa := range r.ServiceAccounts {
role.ServiceAccounts = append(role.ServiceAccounts, sa)
}
role.ServiceAccounts = append(role.ServiceAccounts, r.ServiceAccounts...)

out.Properties.PlatformWorkloadIdentityRoles = append(out.Properties.PlatformWorkloadIdentityRoles, role)
}
Expand Down

0 comments on commit 492b0c2

Please sign in to comment.