mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-23 19:47:07 +09:00
Refactoring of inline diff computing to prevent empty diff box. Fix #2489
This commit is contained in:
1 parent
93f40995b3
commit
5deb726f3f
4 files changed
+37
-50
No files matched your search
@@ -168,12 +168,6 @@ func Diff(ctx *middleware.Context) {
|
||||
}
|
||||
}
|
||||
|
||||
for _, diffFile := range diff.Files {
|
||||
for _, diffSection := range diffFile.Sections {
|
||||
diffSection.ComputeLinesDiff()
|
||||
}
|
||||
}
|
||||
|
||||
ctx.Data["IsSplitStyle"] = ctx.Query("style") == "split"
|
||||
ctx.Data["Username"] = userName
|
||||
ctx.Data["Reponame"] = repoName
|
||||
|
||||
Reference in new issue
Block a user