Skip to content

Commit a69fb52

Browse files
authored
Ensure that ctx.Written is checked after issues(...) calls (#15797)
Fix issue noted in #15783 Signed-off-by: Andrew Thornton <art27@cantab.net>
1 parent 864e656 commit a69fb52

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

routers/repo/issue.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,9 @@ func Issues(ctx *context.Context) {
372372
}
373373

374374
issues(ctx, ctx.QueryInt64("milestone"), ctx.QueryInt64("project"), util.OptionalBoolOf(isPullList))
375+
if ctx.Written() {
376+
return
377+
}
375378

376379
var err error
377380
// Get milestones

0 commit comments

Comments
 (0)