Skip to content

Commit

Permalink
Ensure that ctx.Written is checked after issues(...) calls (go-gitea#…
Browse files Browse the repository at this point in the history
…15797)

Fix issue noted in go-gitea#15783

Signed-off-by: Andrew Thornton <art27@cantab.net>
  • Loading branch information
zeripath authored May 9, 2021
1 parent 864e656 commit a69fb52
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 a69fb52

Please sign in to comment.