Skip to content

Commit 3407ae7

Browse files
declaring commit without a pointer
1 parent 5599e22 commit 3407ae7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/github/repositories.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -885,12 +885,12 @@ func DeleteFile(getClient GetClientFn, t translations.TranslationHelperFunc) (to
885885
}
886886

887887
// Create a new commit with the new tree
888-
commit := &github.Commit{
888+
commit := github.Commit{
889889
Message: github.Ptr(message),
890890
Tree: newTree,
891891
Parents: []*github.Commit{{SHA: baseCommit.SHA}},
892892
}
893-
newCommit, resp, err := client.Git.CreateCommit(ctx, owner, repo, *commit, nil)
893+
newCommit, resp, err := client.Git.CreateCommit(ctx, owner, repo, commit, nil)
894894
if err != nil {
895895
return ghErrors.NewGitHubAPIErrorResponse(ctx,
896896
"failed to create commit",

0 commit comments

Comments
 (0)