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 <[email protected]>
  • Loading branch information
zeripath authored and 6543 committed May 9, 2021
1 parent 76d6184 commit f320b52
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 @@ -374,6 +374,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 f320b52

Please sign in to comment.