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