Skip to content

Commit 5c63b62

Browse files
Nitin Jainnitinjain999
authored andcommitted
fix: rename resp_data to respData (Go naming convention)
1 parent d08e08f commit 5c63b62

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

github/resource_github_copilot_team_seat_assignment.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func resourceGithubCopilotTeamSeatAssignmentRead(ctx context.Context, d *schema.
5959
// The Copilot API has no single-team seat lookup; scan all seats for a team assignee matching our slug.
6060
opts := &github.ListOptions{PerPage: 100}
6161
for {
62-
resp_data, resp, err := client.Copilot.ListCopilotSeats(ctx, org, opts)
62+
respData, resp, err := client.Copilot.ListCopilotSeats(ctx, org, opts)
6363
if err != nil {
6464
if ghErr, ok := errors.AsType[*github.ErrorResponse](err); ok && ghErr.Response.StatusCode == http.StatusNotFound {
6565
tflog.Info(ctx, "Copilot team seat assignment no longer exists, removing from state", map[string]any{"team": teamSlug})
@@ -69,7 +69,7 @@ func resourceGithubCopilotTeamSeatAssignmentRead(ctx context.Context, d *schema.
6969
return diag.FromErr(err)
7070
}
7171

72-
for _, seat := range resp_data.Seats {
72+
for _, seat := range respData.Seats {
7373
if t, ok := seat.GetTeam(); ok && t.GetSlug() == teamSlug {
7474
if err := d.Set("team", teamSlug); err != nil {
7575
return diag.FromErr(err)

0 commit comments

Comments
 (0)