Skip to content

Commit 687ec04

Browse files
committed
gofmt
Signed-off-by: Timo Sand <timo.sand@f-secure.com>
1 parent b2e8850 commit 687ec04

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

github/resource_github_branch_default.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func resourceGithubBranchDefaultCreate(ctx context.Context, d *schema.ResourceDa
9292
} else {
9393
tflog.Debug(ctx, "Setting new default branch")
9494
repository := &github.Repository{
95-
DefaultBranch: github.Ptr(defaultBranch),
95+
DefaultBranch: new(defaultBranch),
9696
}
9797

9898
if _, _, err := client.Repositories.Edit(ctx, owner, repoName, repository); err != nil {
@@ -210,7 +210,7 @@ func resourceGithubBranchDefaultUpdate(ctx context.Context, d *schema.ResourceDa
210210
} else {
211211
tflog.Debug(ctx, "Setting new default branch")
212212
repository := &github.Repository{
213-
DefaultBranch: github.Ptr(defaultBranch),
213+
DefaultBranch: new(defaultBranch),
214214
}
215215

216216
if _, resp, err := client.Repositories.Edit(ctx, owner, repoName, repository); err != nil {

0 commit comments

Comments
 (0)