From 952c11529ebf6046053c6d20f779e1647383b885 Mon Sep 17 00:00:00 2001 From: Evan Mattson Date: Tue, 29 Oct 2019 17:52:09 +0200 Subject: [PATCH] inline unnecessary variable --- includes/Core/Authentication/Authentication.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/includes/Core/Authentication/Authentication.php b/includes/Core/Authentication/Authentication.php index 8f31631c0dc..c32dfadc601 100644 --- a/includes/Core/Authentication/Authentication.php +++ b/includes/Core/Authentication/Authentication.php @@ -277,9 +277,7 @@ public function get_oauth_client() { * @since 1.0.0 */ public function disconnect() { - $auth_client = $this->get_oauth_client(); - - $auth_client->revoke_token(); + $this->get_oauth_client()->revoke_token(); $this->user_options->delete( Clients\OAuth_Client::OPTION_ACCESS_TOKEN ); $this->user_options->delete( Clients\OAuth_Client::OPTION_ACCESS_TOKEN_EXPIRES_IN );