From 19c3ee68ac09239e02da1e8d7da3d813e5137ff2 Mon Sep 17 00:00:00 2001 From: Shu Kutsuzawa Date: Sun, 7 Feb 2021 23:20:12 +0900 Subject: [PATCH] fix based on linter --- github/resource_github_branch_protection.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/github/resource_github_branch_protection.go b/github/resource_github_branch_protection.go index 5e74306830..21311a7973 100644 --- a/github/resource_github_branch_protection.go +++ b/github/resource_github_branch_protection.go @@ -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 { @@ -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 { @@ -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)