Skip to content

Commit a1b251d

Browse files
committed
Remove useless "revoke" action in update_repo
The token revocation is now handled via AJAX / REST route, so this is no longer necessary.
1 parent a3371b4 commit a1b251d

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

SourceGithub/SourceGithub.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -381,12 +381,6 @@ class="btn btn-primary btn-white btn-round btn-sm"
381381
}
382382

383383
public function update_repo( $p_repo ) {
384-
# Revoking previously authorized Github access token
385-
if( gpc_isset( 'revoke' ) ) {
386-
unset( $p_repo->info['hub_app_access_token'] );
387-
return $p_repo;
388-
}
389-
390384
$f_hub_username = gpc_get_string( 'hub_username' );
391385
$f_hub_reponame = gpc_get_string( 'hub_reponame' );
392386
$f_hub_app_client_id = gpc_get_string( 'hub_app_client_id' );

0 commit comments

Comments
 (0)