We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4a0fe3 commit e442ab1Copy full SHA for e442ab1
routers/web/repo/compare.go
@@ -228,9 +228,7 @@ func ParseCompareInfo(ctx *context.Context) *common.CompareInfo {
228
)
229
230
infoPath = ctx.PathParam("*")
231
-
232
var infos []string
233
234
if infoPath == "" {
235
infos = []string{baseRepo.DefaultBranch, baseRepo.DefaultBranch}
236
} else {
@@ -298,7 +296,6 @@ func ParseCompareInfo(ctx *context.Context) *common.CompareInfo {
298
296
ctx.NotFound(nil)
299
297
return nil
300
}
301
302
ctx.Data["HeadUser"] = ci.HeadUser
303
ctx.Data["HeadBranch"] = ci.HeadBranch
304
ctx.Repo.PullRequest.SameRepo = isSameRepo
0 commit comments