Skip to content

Commit

Permalink
Fix break condition
Browse files Browse the repository at this point in the history
  • Loading branch information
loafoe committed Jan 31, 2023
1 parent 18b9a6a commit 9875d25
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion iam/groups_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -401,10 +401,10 @@ func (g *GroupsService) SCIMGetGroupByIDAll(id string, opt *SCIMGetGroupOptions,
} else {
scimGroup.ExtensionGroup.GroupMembers.Resources = append(scimGroup.ExtensionGroup.GroupMembers.Resources, data.ExtensionGroup.GroupMembers.Resources...)
}
current = current + 1
if len(scimGroup.ExtensionGroup.GroupMembers.Resources) >= data.ExtensionGroup.GroupMembers.TotalResults || (*opt.GroupMembersCount*current) > data.ExtensionGroup.GroupMembers.TotalResults {
break // Done
}
current = current + 1
}
return scimGroup, resp, err
}
2 changes: 1 addition & 1 deletion internal/version.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
package internal

const (
LibraryVersion = "0.77.6"
LibraryVersion = "0.77.7"
)

0 comments on commit 9875d25

Please sign in to comment.