mirror of
https://github.com/go-gitea/gitea.git
synced 2025-08-08 13:01:48 +00:00
revert unnecessary change
This commit is contained in:
parent
f4a0fe369f
commit
e442ab15b1
@ -228,9 +228,7 @@ func ParseCompareInfo(ctx *context.Context) *common.CompareInfo {
|
||||
)
|
||||
|
||||
infoPath = ctx.PathParam("*")
|
||||
|
||||
var infos []string
|
||||
|
||||
if infoPath == "" {
|
||||
infos = []string{baseRepo.DefaultBranch, baseRepo.DefaultBranch}
|
||||
} else {
|
||||
@ -298,7 +296,6 @@ func ParseCompareInfo(ctx *context.Context) *common.CompareInfo {
|
||||
ctx.NotFound(nil)
|
||||
return nil
|
||||
}
|
||||
|
||||
ctx.Data["HeadUser"] = ci.HeadUser
|
||||
ctx.Data["HeadBranch"] = ci.HeadBranch
|
||||
ctx.Repo.PullRequest.SameRepo = isSameRepo
|
||||
|
Loading…
Reference in New Issue
Block a user