summaryrefslogtreecommitdiffstats
path: root/routers/repo/editor.go
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2020-05-26 06:58:07 +0100
committerGitHub <noreply@github.com>2020-05-26 01:58:07 -0400
commit5cb201dc93bf41556556f2154ea28755907fd550 (patch)
treeeefbd70bb80a2b2204a18b776f9d0198855e087b /routers/repo/editor.go
parentb97917a6e7b7a7852d1c0f39a96e06eeb7aab6de (diff)
downloadgitea-5cb201dc93bf41556556f2154ea28755907fd550.tar.gz
gitea-5cb201dc93bf41556556f2154ea28755907fd550.zip
Fix numbr of files, total additions, and deletions (#11614)
Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Diffstat (limited to 'routers/repo/editor.go')
-rw-r--r--routers/repo/editor.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/editor.go b/routers/repo/editor.go
index 2fa7976e00..f91ce1b462 100644
--- a/routers/repo/editor.go
+++ b/routers/repo/editor.go
@@ -339,7 +339,7 @@ func DiffPreviewPost(ctx *context.Context, form auth.EditPreviewDiffForm) {
return
}
- if diff.NumFiles() == 0 {
+ if diff.NumFiles == 0 {
ctx.PlainText(200, []byte(ctx.Tr("repo.editor.no_changes_to_show")))
return
}