Skip to content

Commit af11549

Browse files
6543zeripath
andauthored
Ensure that ctx.Written is checked after issues(...) calls (#15797) (#15798)
Fix issue noted in #15783 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: zeripath <art27@cantab.net>
1 parent 76d6184 commit af11549

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
@@ -374,6 +374,9 @@ func Issues(ctx *context.Context) {
374374
}
375375

376376
issues(ctx, ctx.QueryInt64("milestone"), ctx.QueryInt64("project"), util.OptionalBoolOf(isPullList))
377+
if ctx.Written() {
378+
return
379+
}
377380

378381
var err error
379382
// Get milestones

0 commit comments

Comments
 (0)