diff options
Diffstat (limited to 'routers/repo/pull.go')
-rw-r--r-- | routers/repo/pull.go | 10 |
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 { |