Skip to content

Commit e442ab1

Browse files
committed
revert unnecessary change
1 parent f4a0fe3 commit e442ab1

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

routers/web/repo/compare.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -228,9 +228,7 @@ func ParseCompareInfo(ctx *context.Context) *common.CompareInfo {
228228
)
229229

230230
infoPath = ctx.PathParam("*")
231-
232231
var infos []string
233-
234232
if infoPath == "" {
235233
infos = []string{baseRepo.DefaultBranch, baseRepo.DefaultBranch}
236234
} else {
@@ -298,7 +296,6 @@ func ParseCompareInfo(ctx *context.Context) *common.CompareInfo {
298296
ctx.NotFound(nil)
299297
return nil
300298
}
301-
302299
ctx.Data["HeadUser"] = ci.HeadUser
303300
ctx.Data["HeadBranch"] = ci.HeadBranch
304301
ctx.Repo.PullRequest.SameRepo = isSameRepo

0 commit comments

Comments
 (0)