Skip to content

Commit e9b1e28

Browse files
committed
refactor: remove unnecessary ctx and blank lines per review
1 parent d0b72ae commit e9b1e28

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

github/resource_github_actions_runner_group.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,6 @@ func resourceGithubActionsRunnerGroupCreate(ctx context.Context, d *schema.Resou
190190
}
191191
}
192192

193-
ctx = context.WithValue(ctx, ctxId, d.Id())
194-
195193
runnerGroup, resp, err := client.Actions.CreateOrganizationRunnerGroup(ctx,
196194
orgName,
197195
github.CreateRunnerGroupRequest{
@@ -207,7 +205,6 @@ func resourceGithubActionsRunnerGroupCreate(ctx context.Context, d *schema.Resou
207205
return diag.FromErr(err)
208206
}
209207
d.SetId(strconv.FormatInt(runnerGroup.GetID(), 10))
210-
ctx = context.WithValue(ctx, ctxId, d.Id())
211208
if err = setGithubActionsRunnerGroupState(d, runnerGroup, normalizeEtag(resp.Header.Get("ETag")), selectedRepositoryIDs); err != nil {
212209
return diag.FromErr(err)
213210
}
@@ -266,7 +263,6 @@ func resourceGithubActionsRunnerGroupRead(ctx context.Context, d *schema.Resourc
266263
}
267264

268265
runnerGroupEtag := normalizeEtag(resp.Header.Get("ETag"))
269-
270266
runnerGroupNetworking, _, err := getRunnerGroupNetworking(client, ctx, fmt.Sprintf("orgs/%s/actions/runner-groups/%d", orgName, runnerGroupID))
271267
if err != nil {
272268
return diag.FromErr(err)

0 commit comments

Comments
 (0)