Add missed return after ctx.ServerError (#31130)

此提交包含在:
Lunny Xiao
2024-05-28 12:31:59 +03:00
提交者 GitHub
父節點 cd7d1314fc
當前提交 b6f15c7948
共有 5 個檔案被更改,包括 5 行新增0 行删除
+1
查看文件
@@ -831,6 +831,7 @@ func ActivateEmail(ctx *context.Context) {
if email := user_model.VerifyActiveEmailCode(ctx, code, emailStr); email != nil {
if err := user_model.ActivateEmail(ctx, email); err != nil {
ctx.ServerError("ActivateEmail", err)
return
}
log.Trace("Email activated: %s", email.Email)