branch: externals/auth-source-xoauth2-plugin commit c9a6778dba989da544e8970ffa7f0d4a09837eff Author: Xiyue Deng <manp...@gmail.com> Commit: Xiyue Deng <manp...@gmail.com>
Simplified equal check --- auth-source-xoauth2-plugin.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/auth-source-xoauth2-plugin.el b/auth-source-xoauth2-plugin.el index b0baab7212..dd3290855a 100644 --- a/auth-source-xoauth2-plugin.el +++ b/auth-source-xoauth2-plugin.el @@ -102,8 +102,7 @@ expected that `token_url', `client_id', `client_secret', and (dolist (auth-data orig-res) (auth-source-do-trivia "Matched auth data: %s" (pp-to-string auth-data)) (let ((auth (plist-get auth-data :auth))) - (when (and auth - (equal auth "xoauth2")) + (when (equal auth "xoauth2") (auth-source-do-debug ":auth set to `xoauth2'. Will get access token.") (map-let ((:auth-url auth-url)