Skip to content

Commit

Permalink
inline unnecessary variable
Browse files Browse the repository at this point in the history
  • Loading branch information
aaemnnosttv committed Oct 29, 2019
1 parent f8431a5 commit 952c115
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions includes/Core/Authentication/Authentication.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down

0 comments on commit 952c115

Please sign in to comment.