Simplify context ref name (#33267)

This commit is contained in:
wxiaoguang 2025-01-15 11:15:47 +08:00 committed by GitHub
parent cbf933eb4e
commit fcd096231a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
12 changed files with 27 additions and 80 deletions

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)
}