瀏覽代碼

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 查看文件

return return
} }


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



Loading…
取消
儲存