Skip to content

Commit b2035c0

Browse files
committed
add missing ctx.Written check
1 parent f4e286b commit b2035c0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

routers/web/repo/issue_list.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -768,6 +768,9 @@ func Issues(ctx *context.Context) {
768768
ctx.Data["Title"] = ctx.Tr("repo.pulls")
769769
ctx.Data["PageIsPullList"] = true
770770
prepareRecentlyPushedNewBranches(ctx)
771+
if ctx.Written() {
772+
return
773+
}
771774
} else {
772775
MustEnableIssues(ctx)
773776
if ctx.Written() {

0 commit comments

Comments
 (0)