Skip to content

Commit

Permalink
Ensure that ctx.Written is checked after issues(...) calls
Browse files Browse the repository at this point in the history
Fix issue noted in #15783

Signed-off-by: Andrew Thornton <[email protected]>
  • Loading branch information
zeripath committed May 8, 2021
1 parent 864e656 commit 3a62d97
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions routers/repo/issue.go
Original file line number Diff line number Diff line change
Expand Up @@ -372,6 +372,9 @@ func Issues(ctx *context.Context) {
}

issues(ctx, ctx.QueryInt64("milestone"), ctx.QueryInt64("project"), util.OptionalBoolOf(isPullList))
if ctx.Written() {
return
}

var err error
// Get milestones
Expand Down

0 comments on commit 3a62d97

Please sign in to comment.