diff --git a/routers/web/repo/editor.go b/routers/web/repo/editor.go index 394a3548cf..542ba93e74 100644 --- a/routers/web/repo/editor.go +++ b/routers/web/repo/editor.go @@ -154,7 +154,6 @@ func editFile(ctx *context.Context, isNewFile bool) { defer dataRc.Close() - ctx.Data["IsFileTooLarge"] = blob.Size() >= setting.UI.MaxDisplayFileSize ctx.Data["FileSize"] = blob.Size() buf := make([]byte, 1024)