Skip to content

Commit

Permalink
fixing err errors
Browse files Browse the repository at this point in the history
  • Loading branch information
pputman-clabs committed Jan 12, 2023
1 parent 67ec116 commit 7985716
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mockokta.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ func (g *GroupResource) AssignRoleToGroup(ctx context.Context, groupID string, a

// ListGroupAssignedRoles will list all the roles for a specified groupID
func (g *GroupResource) ListGroupAssignedRoles(ctx context.Context, groupID string, qp *query.Params) ([]*okta.Role, *okta.Response, error) {
group, err := g.GetGroupByID(groupID)
group, _ := g.GetGroupByID(groupID)
return g.GroupRoles[group.Profile.Name], nil, nil
}

Expand All @@ -214,7 +214,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, err := g.GetGroupByID(groupID)
group, _ := g.GetGroupByID(groupID)
var users []*okta.User
for _, user := range g.GroupUsers[group.Profile.Name] {
user, _ := g.Client.User.GetUserByEmail(user)
Expand Down

0 comments on commit 7985716

Please sign in to comment.