Skip to content

Commit c026cf0

Browse files
committed
fix lint
1 parent 970865d commit c026cf0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

routers/web/auth/oauth.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,7 @@ func SignInOAuthCallback(ctx *context.Context) {
208208
}
209209
} else if setting.OAuth2Client.AccountLinking == setting.OAuth2AccountLinkingAuto {
210210
// allow ACCOUNT_LINKING=auto to work without ENABLE_AUTO_REGISTRATION.
211-
var user *user_model.User
212-
user = &user_model.User{Email: gothUser.Email}
211+
user := &user_model.User{Email: gothUser.Email}
213212
hasUser, err := user_model.GetUser(ctx, user)
214213
if err != nil {
215214
ctx.ServerError("UserLinkAccount", err)

0 commit comments

Comments
 (0)