Skip to content

Commit dcaadb8

Browse files
committed
Remove duplicated context data
1 parent 7684e17 commit dcaadb8

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

routers/web/repo/editor.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,6 @@ func editFile(ctx *context.Context, isNewFile bool) {
154154

155155
defer dataRc.Close()
156156

157-
ctx.Data["IsFileTooLarge"] = blob.Size() >= setting.UI.MaxDisplayFileSize
158157
ctx.Data["FileSize"] = blob.Size()
159158

160159
buf := make([]byte, 1024)

0 commit comments

Comments
 (0)