Skip to content

Commit ee9663a

Browse files
committed
Fix undefined variable error in GetRepositoryTree
1 parent bc3a74e commit ee9663a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pkg/github/git.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,12 @@ func GetRepositoryTree(getClient GetClientFn, t translations.TranslationHelperFu
9191

9292
// If no tree_sha is provided, use the repository's default branch
9393
if treeSHA == "" {
94-
repoInfo, _, err := client.Repositories.Get(ctx, owner, repo)
94+
repoInfo, repoResp, err := client.Repositories.Get(ctx, owner, repo)
9595
if err != nil {
9696
return ghErrors.NewGitHubAPIErrorResponse(ctx,
97-
"failed to get repository info",
98-
resp,
99-
err,
97+
"failed to get repository info",
98+
repoResp,
99+
err,
100100
), nil
101101
}
102102
treeSHA = *repoInfo.DefaultBranch

0 commit comments

Comments
 (0)