Skip to content

Commit f39bad3

Browse files
wxiaoguangbadhezi
authored andcommitted
revert unnecessary change
1 parent 5764e20 commit f39bad3

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
@@ -230,9 +230,7 @@ func ParseCompareInfo(ctx *context.Context) *common.CompareInfo {
230230
)
231231

232232
infoPath = ctx.PathParam("*")
233-
234233
var infos []string
235-
236234
if infoPath == "" {
237235
infos = []string{baseRepo.DefaultBranch, baseRepo.DefaultBranch}
238236
} else {
@@ -300,7 +298,6 @@ func ParseCompareInfo(ctx *context.Context) *common.CompareInfo {
300298
ctx.NotFound(nil)
301299
return nil
302300
}
303-
304301
ctx.Data["HeadUser"] = ci.HeadUser
305302
ctx.Data["HeadBranch"] = ci.HeadBranch
306303
ctx.Repo.PullRequest.SameRepo = isSameRepo

0 commit comments

Comments
 (0)