diff options
author | ᴜɴᴋɴᴡᴏɴ <u@gogs.io> | 2020-03-01 14:55:03 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-01 14:55:03 +0800 |
commit | f04b2d43509816ecfda93aa5d0d1fd685d9b860f (patch) | |
tree | 548c7b0b4ff2f187569e74cf99c19742a44f18aa /internal/route/user/auth.go | |
parent | 9c65798902386341a205d52b6b3842e1dc2c751a (diff) |
lint: fix some Golang CI lint issues (#5955)
Diffstat (limited to 'internal/route/user/auth.go')
-rw-r--r-- | internal/route/user/auth.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/internal/route/user/auth.go b/internal/route/user/auth.go index 7d72eb16..88b0d1e8 100644 --- a/internal/route/user/auth.go +++ b/internal/route/user/auth.go @@ -438,10 +438,10 @@ func Activate(c *context.Context) { func ActivateEmail(c *context.Context) { code := c.Query("code") - email_string := c.Query("email") + emailAddr := c.Query("email") // Verify code. - if email := db.VerifyActiveEmailCode(code, email_string); email != nil { + if email := db.VerifyActiveEmailCode(code, emailAddr); email != nil { if err := email.Activate(); err != nil { c.ServerError("ActivateEmail", err) } @@ -451,7 +451,6 @@ func ActivateEmail(c *context.Context) { } c.SubURLRedirect("/user/settings/email") - return } func ForgotPasswd(c *context.Context) { |