Skip to content

Commit

Permalink
fix based on linter (integrations#694)
Browse files Browse the repository at this point in the history
  • Loading branch information
Shu Kutsuzawa authored Feb 10, 2021
1 parent 1f810d8 commit 63de775
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions github/resource_github_branch_protection.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ func resourceGithubBranchProtectionRead(d *schema.ResourceData, meta interface{}
"id": d.Id(),
}

ctx := context.WithValue(context.Background(), "id", d.Id())
ctx := context.WithValue(context.Background(), ctxId, d.Id())
client := meta.(*Owner).v4client
err := client.Query(ctx, &query, variables)
if err != nil {
Expand Down Expand Up @@ -266,7 +266,7 @@ func resourceGithubBranchProtectionUpdate(d *schema.ResourceData, meta interface
ReviewDismissalActorIDs: githubv4NewIDSlice(githubv4IDSlice(data.ReviewDismissalActorIDs)),
}

ctx := context.WithValue(context.Background(), "id", d.Id())
ctx := context.WithValue(context.Background(), ctxId, d.Id())
client := meta.(*Owner).v4client
err = client.Mutate(ctx, &mutate, input, nil)
if err != nil {
Expand All @@ -288,7 +288,7 @@ func resourceGithubBranchProtectionDelete(d *schema.ResourceData, meta interface
BranchProtectionRuleID: d.Id(),
}

ctx := context.WithValue(context.Background(), "id", d.Id())
ctx := context.WithValue(context.Background(), ctxId, d.Id())
client := meta.(*Owner).v4client
err := client.Mutate(ctx, &mutate, input, nil)

Expand Down

0 comments on commit 63de775

Please sign in to comment.