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 5764e20 commit f39bad3Copy full SHA for f39bad3
routers/web/repo/compare.go
@@ -230,9 +230,7 @@ func ParseCompareInfo(ctx *context.Context) *common.CompareInfo {
230
)
231
232
infoPath = ctx.PathParam("*")
233
-
234
var infos []string
235
236
if infoPath == "" {
237
infos = []string{baseRepo.DefaultBranch, baseRepo.DefaultBranch}
238
} else {
@@ -300,7 +298,6 @@ func ParseCompareInfo(ctx *context.Context) *common.CompareInfo {
300
298
ctx.NotFound(nil)
301
299
return nil
302
}
303
304
ctx.Data["HeadUser"] = ci.HeadUser
305
ctx.Data["HeadBranch"] = ci.HeadBranch
306
ctx.Repo.PullRequest.SameRepo = isSameRepo
0 commit comments