summaryrefslogtreecommitdiffstats
path: root/routers/repo/pull.go
diff options
context:
space:
mode:
authorAndrey Nering <andrey.nering@gmail.com>2016-01-27 18:54:08 -0200
committerAndrey Nering <andrey.nering@gmail.com>2016-01-27 18:54:08 -0200
commit5deb726f3fc5335b7391a28f6b21328b1335dd9e (patch)
tree03044e2fb9dfee8f6c8f77356d983936cceb105b /routers/repo/pull.go
parent93f40995b30b67e80e3fff36fe7e7ced756a13d8 (diff)
downloadgitea-5deb726f3fc5335b7391a28f6b21328b1335dd9e.tar.gz
gitea-5deb726f3fc5335b7391a28f6b21328b1335dd9e.zip
Refactoring of inline diff computing to prevent empty diff box. Fix #2489
Diffstat (limited to 'routers/repo/pull.go')
-rw-r--r--routers/repo/pull.go6
1 files changed, 0 insertions, 6 deletions
diff --git a/routers/repo/pull.go b/routers/repo/pull.go
index 770ec471e4..e3500716d3 100644
--- a/routers/repo/pull.go
+++ b/routers/repo/pull.go
@@ -349,12 +349,6 @@ func ViewPullFiles(ctx *middleware.Context) {
ctx.Data["Diff"] = diff
ctx.Data["DiffNotAvailable"] = diff.NumFiles() == 0
- for _, diffFile := range diff.Files {
- for _, diffSection := range diffFile.Sections {
- diffSection.ComputeLinesDiff()
- }
- }
-
commit, err := gitRepo.GetCommit(endCommitID)
if err != nil {
ctx.Handle(500, "GetCommit", err)