浏览代码

Fix viewing wiki commit on empty repo (#28040) (#28044)

Backport #28040 by @JakobDev

Fixes https://codeberg.org/forgejo/forgejo/issues/1758

For some weird reason we need to cast this nil.

Co-authored-by: JakobDev <jakobdev@gmx.de>
tags/v1.21.0
Giteabot 7 个月前
父节点
当前提交
124a9957d0
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 0 次插入1 次删除
  1. 0
    1
      routers/web/repo/middlewares.go

+ 0
- 1
routers/web/repo/middlewares.go 查看文件

@@ -16,7 +16,6 @@ import (
// SetEditorconfigIfExists set editor config as render variable
func SetEditorconfigIfExists(ctx *context.Context) {
if ctx.Repo.Repository.IsEmpty {
ctx.Data["Editorconfig"] = nil
return
}


正在加载...
取消
保存