From fca3bcf0d9a6adc37d553530bea8a3b0b278b5bf Mon Sep 17 00:00:00 2001 From: wxiaoguang <wxiaoguang@gmail.com> Date: Fri, 11 Apr 2025 20:13:33 +0800 Subject: [PATCH] Update routers/web/repo/view_file.go Co-authored-by: yp05327 <576951401@qq.com> --- routers/web/repo/view_file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/web/repo/view_file.go b/routers/web/repo/view_file.go index 8ce3724f62..ff0e1b4d54 100644 --- a/routers/web/repo/view_file.go +++ b/routers/web/repo/view_file.go @@ -159,7 +159,7 @@ func prepareToRenderFile(ctx *context.Context, entry *git.TreeEntry) { } attrs := attrsMap[ctx.Repo.TreePath] if attrs == nil { - // this case shouldn't happe, just in case. + // this case shouldn't happen, just in case. setting.PanicInDevOrTesting("no attributes found for %s", ctx.Repo.TreePath) attrs = attribute.NewAttributes() }