Skip to content

Commit 69ac131

Browse files
cleanup additional commit pointer
1 parent 3407ae7 commit 69ac131

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
@@ -1183,12 +1183,12 @@ func PushFiles(getClient GetClientFn, t translations.TranslationHelperFunc) (too
11831183
defer func() { _ = resp.Body.Close() }()
11841184

11851185
// Create a new commit
1186-
commit := &github.Commit{
1186+
commit := github.Commit{
11871187
Message: github.Ptr(message),
11881188
Tree: newTree,
11891189
Parents: []*github.Commit{{SHA: baseCommit.SHA}},
11901190
}
1191-
newCommit, resp, err := client.Git.CreateCommit(ctx, owner, repo, *commit, nil)
1191+
newCommit, resp, err := client.Git.CreateCommit(ctx, owner, repo, commit, nil)
11921192
if err != nil {
11931193
return ghErrors.NewGitHubAPIErrorResponse(ctx,
11941194
"failed to create commit",

0 commit comments

Comments
 (0)