mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2025-09-15 18:56:59 +00:00
Clean code
This commit is contained in:
parent
57ac15aa20
commit
ee9b7f322f
3 changed files with 5 additions and 8 deletions
|
@ -296,7 +296,7 @@ func DeletePost(ctx *middleware.Context) {
|
|||
case models.ErrUserOwnRepos:
|
||||
ctx.Flash.Error("Your account still have ownership of repository, you have to delete or transfer them first.")
|
||||
default:
|
||||
ctx.Handle(500, "user.Delete", err)
|
||||
ctx.Handle(500, "user.Delete(DeleteUser)", err)
|
||||
return
|
||||
}
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue