From 4ca60b599ddef5212ca656f6dbe5fba94aa4735a Mon Sep 17 00:00:00 2001 From: techknowlogick <techknowlogick@gitea.com> Date: Thu, 27 Feb 2025 23:28:54 -0500 Subject: [PATCH] fix lint --- modules/auth/oauth.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/modules/auth/oauth.go b/modules/auth/oauth.go index 4c65d75..96b5168 100644 --- a/modules/auth/oauth.go +++ b/modules/auth/oauth.go @@ -182,11 +182,7 @@ func OAuthLoginWithFullOptions(opts OAuthOptions) error { } // Create login with token data - if err := createLoginFromToken(opts.Name, serverURL.String(), token, opts.Insecure); err != nil { - return err - } - - return nil + return createLoginFromToken(opts.Name, serverURL.String(), token, opts.Insecure) } // createHTTPClient creates an HTTP client with optional insecure setting