From dcaadb801fb64d739ab8489399d2e336b60b998e Mon Sep 17 00:00:00 2001 From: bytedream Date: Sat, 3 May 2025 02:57:33 +0200 Subject: [PATCH] Remove duplicated context data --- routers/web/repo/editor.go | 1 - 1 file changed, 1 deletion(-) 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)