Skip to content

Commit

Permalink
fixing static check issues
Browse files Browse the repository at this point in the history
  • Loading branch information
pputman-clabs committed Jan 12, 2023
1 parent 85e18d2 commit bd24e1a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mockokta.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ func (g *GroupResource) AssignRoleToGroup(ctx context.Context, groupID string, a
func (g *GroupResource) ListGroupAssignedRoles(ctx context.Context, groupID string, qp *query.Params) ([]*okta.Role, *okta.Response, error) {

group, _ := g.GetGroupByID(groupID)
roles := make([]*okta.Role, 0, 0)
roles := make([]*okta.Role, 0)

roles = append(roles, g.GroupRoles[group.Profile.Name]...)
return roles, nil, nil
Expand All @@ -218,7 +218,7 @@ func (g *GroupResource) GroupContainsRole(group okta.Group, roleType string) boo
// ListGroupUsers will return a slice of all users in the specified group
func (g *GroupResource) ListGroupUsers(ctx context.Context, groupID string, qp *query.Params) ([]*okta.User, *okta.Response, error) {
group, _ := g.GetGroupByID(groupID)
users := make([]*okta.User, 0, 0)
users := make([]*okta.User, 0)
for _, user := range g.GroupUsers[group.Profile.Name] {
user, _ := g.Client.User.GetUserByEmail(user)
users = append(users, user)
Expand Down Expand Up @@ -283,7 +283,7 @@ func (u *UserResource) CreateUser(userEmail string) (*okta.User, error) {

// ListUsers returns a list of all okta Users
func (u *UserResource) ListUsers(ctx context.Context, qp *query.Params) ([]*okta.User, *okta.Response, error) {
users := make([]*okta.User, 0, 0)
users := make([]*okta.User, 0)
users = append(users, u.Users...)
return users, nil, nil
}
Expand Down

0 comments on commit bd24e1a

Please sign in to comment.