From e442ab15b146739daa89c48973d51478b9d8e030 Mon Sep 17 00:00:00 2001 From: wxiaoguang Date: Sun, 1 Jun 2025 23:30:44 +0800 Subject: [PATCH] revert unnecessary change --- routers/web/repo/compare.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/routers/web/repo/compare.go b/routers/web/repo/compare.go index 4f0f6341c12..9cd463a4fea 100644 --- a/routers/web/repo/compare.go +++ b/routers/web/repo/compare.go @@ -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