Skip to content

Commit 1a2c79e

Browse files
authored
Fixing lint
1 parent 1c87cc4 commit 1a2c79e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

github/resource_github_enterprise_ip_allow_list_entry.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,8 @@ func resourceGithubEnterpriseIpAllowListEntryCreate(ctx context.Context, d *sche
9191
}
9292

9393
if name != "" {
94-
input.Name = githubv4.NewString(githubv4.String(name))
94+
v := githubv4.String(name)
95+
input.Name = &v
9596
}
9697

9798
err = client.Mutate(ctx, &mutation, input, nil)
@@ -191,7 +192,8 @@ func resourceGithubEnterpriseIpAllowListEntryUpdate(ctx context.Context, d *sche
191192
}
192193

193194
if name != "" {
194-
input.Name = githubv4.NewString(githubv4.String(name))
195+
v := githubv4.String(name)
196+
input.Name = &v
195197
}
196198

197199
err := client.Mutate(ctx, &mutation, input, nil)

0 commit comments

Comments
 (0)