Skip to content

Commit 63fc0fb

Browse files
committed
fix comments
1 parent dd3a94c commit 63fc0fb

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

routers/web/auth/linkaccount.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,11 @@ func LinkAccount(ctx *context.Context) {
5151
ctx.Data["SignUpLink"] = setting.AppSubURL + "/user/link_account_signup"
5252

5353
gothUser, ok := ctx.Session.Get("linkAccountGothUser").(goth.User)
54-
// If you'd like to quickly debug the "link account" page, just uncomment the blow line
55-
// don't worry, the below line won't pass the lint
54+
55+
// If you'd like to quickly debug the "link account" page layout, just uncomment the blow line
56+
// Don't worry, when the below line exists, the lint won't pass: ineffectual assignment to gothUser (ineffassign)
5657
// gothUser, ok = goth.User{Email: "invalid-email", Name: "."}, true // intentionally use invalid data to avoid pass the registration check
58+
5759
if !ok {
5860
// no account in session, so just redirect to the login page, then the user could restart the process
5961
ctx.Redirect(setting.AppSubURL + "/user/login")

0 commit comments

Comments
 (0)