summaryrefslogtreecommitdiffstats
path: root/routers/user/setting.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/user/setting.go')
-rw-r--r--routers/user/setting.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/routers/user/setting.go b/routers/user/setting.go
index 739a30d032..e091bc4381 100644
--- a/routers/user/setting.go
+++ b/routers/user/setting.go
@@ -252,16 +252,14 @@ func SettingsDelete(ctx *middleware.Context) {
case models.ErrUserOwnRepos:
ctx.Flash.Error(ctx.Tr("form.still_own_repo"))
ctx.Redirect("/user/settings/delete")
- return
default:
ctx.Handle(500, "DeleteUser", err)
- return
}
} else {
log.Trace("Account deleted: %s", ctx.User.Name)
ctx.Redirect("/")
- return
}
+ return
}
ctx.HTML(200, SETTINGS_DELETE)