aboutsummaryrefslogtreecommitdiff
path: root/routers/repo/pull.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-12-22 01:28:06 -0500
committerUnknwon <u@gogs.io>2016-12-22 01:28:06 -0500
commitd04b19545db513c31d86d503046f51ba780e4038 (patch)
treef0948450c9afeb6e41d9eb1e2b5bff5cf0e3c9dc /routers/repo/pull.go
parent3b0e2c1c3fd1b20d5afc3344aefb8af1b1dcb5b4 (diff)
Code fix for PR #3547
Diffstat (limited to 'routers/repo/pull.go')
-rw-r--r--routers/repo/pull.go10
1 files changed, 0 insertions, 10 deletions
diff --git a/routers/repo/pull.go b/routers/repo/pull.go
index d5d9bc9b..4f0ef1ed 100644
--- a/routers/repo/pull.go
+++ b/routers/repo/pull.go
@@ -156,11 +156,6 @@ func checkPullInfo(ctx *context.Context) *models.Issue {
return nil
}
- if err = issue.PullRequest.GetHeadRepo(); err != nil {
- ctx.Handle(500, "GetHeadRepo", err)
- return nil
- }
-
if ctx.IsSigned {
// Update issue-user.
if err = issue.ReadBy(ctx.User.ID); err != nil {
@@ -203,11 +198,6 @@ func PrepareViewPullInfo(ctx *context.Context, issue *models.Issue) *git.PullReq
err error
)
- if err = pull.GetHeadRepo(); err != nil {
- ctx.Handle(500, "GetHeadRepo", err)
- return nil
- }
-
if pull.HeadRepo != nil {
headGitRepo, err = git.OpenRepository(pull.HeadRepo.RepoPath())
if err != nil {