diff --git a/routers/web/repo/editor.go b/routers/web/repo/editor.go index 58556deab2..ef9dcc3930 100644 --- a/routers/web/repo/editor.go +++ b/routers/web/repo/editor.go @@ -420,7 +420,7 @@ func DiffPreviewPost(ctx *context.Context) { } if diff.NumFiles == 0 { - ctx.PlainText(http.StatusOK, `