This website works better with JavaScript.
Home
Explore
Help
Sign In
mirrors
/
gitea
mirror of
https://github.com/go-gitea/gitea.git
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
210
Wiki
Activity
Browse Source
simplify
pull/30707/head
silverwind
1 week ago
parent
73937a5204
commit
33d4ed973f
No account linked to committer's email address
1 changed files
with
1 additions
and
3 deletions
Split View
Show Diff Stats
1
3
routers/web/repo/editor.go
+ 1
- 3
routers/web/repo/editor.go
View File
@@ -419,9 +419,7 @@ func DiffPreviewPost(ctx *context.Context) {
return
}
if diff.NumFiles == 0 {
ctx.Data["File"] = nil
} else {
if diff.NumFiles != 0 {
ctx.Data["File"] = diff.Files[0]
}
Write
Preview
Loading…
Cancel
Save