Skip to content

Commit c9ccb71

Browse files
authored
.
1 parent 2948502 commit c9ccb71

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

github/actions_runner_groups.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,9 @@ type ListOrgRunnerGroupOptions struct {
7171

7272
// ListOrganizationRunnerGroups is a wrapper around ListOrganizationRunnerGroupsWithOptions to avoid breaking existing client's code.
7373
func (s *ActionsService) ListOrganizationRunnerGroups(ctx context.Context, org string, opts *ListOptions) (*RunnerGroups, *Response, error) {
74-
listOpts := &ListOrgRunnerGroupOptions{
75-
ListOptions: *opts,
74+
listOpts := &ListOrgRunnerGroupOptions{}
75+
if opts != nil {
76+
listOpts.ListOptions = *opts
7677
}
7778
return s.ListOrganizationRunnerGroupsWithOptions(ctx, org, listOpts)
7879
}

0 commit comments

Comments
 (0)