mirror of
https://github.com/go-gitea/gitea
synced 2024-09-26 19:19:00 +02:00
fmt
This commit is contained in:
parent
2c9a036ad6
commit
34c6e6f4b3
1 changed files with 1 additions and 1 deletions
|
@ -420,7 +420,7 @@ func DiffPreviewPost(ctx *context.Context) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if diff.NumFiles == 0 {
|
if diff.NumFiles == 0 {
|
||||||
ctx.PlainText(http.StatusOK, `<div class="tw-p-6">` + ctx.Locale.TrString("repo.editor.no_changes_to_show") + `</div>`)
|
ctx.PlainText(http.StatusOK, `<div class="tw-p-6">`+ctx.Locale.TrString("repo.editor.no_changes_to_show")+`</div>`)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
ctx.Data["File"] = diff.Files[0]
|
ctx.Data["File"] = diff.Files[0]
|
||||||
|
|
Loading…
Reference in a new issue