Skip to content
Merged
Prev Previous commit
Next Next commit
Lint
  • Loading branch information
KN4CK3R committed Jul 20, 2021
commit 1e0158f3c96115132c4d148bab9e2cdbe6939597
3 changes: 0 additions & 3 deletions routers/api/v1/repo/pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -1224,9 +1224,6 @@ func GetPullRequestCommits(ctx *context.APIContext) {

apiCommits := make([]*api.Commit, 0, end-start)
for i := start; i < end; i++ {
commit := commits[i]

// Create json struct
apiCommit, err := convert.ToCommit(ctx.Repo.Repository, commits[i], userCache)
if err != nil {
ctx.ServerError("toCommit", err)
Expand Down