Ensure that ctx.Written is checked after issues(...) calls (#15797)
Ensure that ctx.Written is checked after issues(...) calls (#15797)

Fix issue noted in #15783

Signed-off-by: Andrew Thornton <6a547fdd28db89120bdd70d4af1f9ba672ccd43a@cantab.net>
cez81/gitea,cez81/gitea,vdbt/gitea,cez81/gitea,vdbt/gitea,go-gitea/gitea,go-gitea/gitea,go-gitea/gitea