From c026cf0bd57d9c1575620215093161560f902672 Mon Sep 17 00:00:00 2001 From: Lyle Keeton Date: Fri, 17 Oct 2025 01:15:57 -0500 Subject: [PATCH] fix lint --- routers/web/auth/oauth.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/routers/web/auth/oauth.go b/routers/web/auth/oauth.go index dc00bee45d..0e495790cf 100644 --- a/routers/web/auth/oauth.go +++ b/routers/web/auth/oauth.go @@ -208,8 +208,7 @@ func SignInOAuthCallback(ctx *context.Context) { } } else if setting.OAuth2Client.AccountLinking == setting.OAuth2AccountLinkingAuto { // allow ACCOUNT_LINKING=auto to work without ENABLE_AUTO_REGISTRATION. - var user *user_model.User - user = &user_model.User{Email: gothUser.Email} + user := &user_model.User{Email: gothUser.Email} hasUser, err := user_model.GetUser(ctx, user) if err != nil { ctx.ServerError("UserLinkAccount", err)