浏览代码

simplify

pull/30707/head
silverwind 3 周前
父节点
当前提交
33d4ed973f
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1
    3
      routers/web/repo/editor.go

+ 1
- 3
routers/web/repo/editor.go 查看文件

@@ -419,9 +419,7 @@ func DiffPreviewPost(ctx *context.Context) {
return
}

if diff.NumFiles == 0 {
ctx.Data["File"] = nil
} else {
if diff.NumFiles != 0 {
ctx.Data["File"] = diff.Files[0]
}


正在加载...
取消
保存