Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
WilfredDube committed Dec 31, 2024
1 parent 7dc2ccd commit 2eae0a7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -4683,14 +4683,13 @@ func (g *GoCloak) GetOrganizationMemberByID(ctx context.Context, token, realm, i
// GetOrganizationMembers returns a paginated list of organization members filtered according to the specified parameters
func (g *GoCloak) GetOrganizationMembers(ctx context.Context, token, realm, idOfOrganization string, params GetMembersParams) ([]*MemberRepresentation, error) {
const errMessage = "could not get organization members"
var result []*MemberRepresentation

queryParams, err := GetQueryParams(params)
if err != nil {
return nil, errors.Wrap(err, errMessage)
}

var result []*MemberRepresentation

resp, err := g.GetRequestWithBearerAuth(ctx, token).
SetResult(&result).
SetQueryParams(queryParams).
Expand Down

0 comments on commit 2eae0a7

Please sign in to comment.