Simplify context ref name (#33267)

This commit is contained in:
wxiaoguang authored and GitHub committed 2025-01-15 11:15:47 +08:00
1 parent cbf933eb4e
commit fcd096231a
12 files changed
+27 -80

No files matched your search

-6
View File
@@ -390,12 +390,6 @@ func Diff(ctx *context.Context) {
}
}
ctx.Data["BranchName"], err = commit.GetBranchName()
if err != nil {
ctx.ServerError("commit.GetBranchName", err)
return
}
ctx.HTML(http.StatusOK, tplCommitPage)
}