Skip to content

Commit

Permalink
done elsewhere
Browse files Browse the repository at this point in the history
  • Loading branch information
afragen committed Mar 6, 2022
1 parent bec0fd7 commit c2038c5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/Git_Updater/API/API.php
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,6 @@ protected function get_release_asset_redirect( $asset, $aws = false ) {
$release_asset_response = \wp_remote_get( $asset, $args );
$release_asset_response = json_decode( wp_remote_retrieve_body( $release_asset_response ) );
if ( ! empty( $release_asset_response ) ) {
$this->set_repo_cache( 'release_asset', $asset );
$this->set_repo_cache( 'release_asset_response', $release_asset_response );
}

Expand All @@ -593,7 +592,6 @@ protected function get_release_asset_redirect( $asset, $aws = false ) {

// If $redirect not retrieved zero out value of release_asset in cache.
if ( 200 !== wp_remote_retrieve_response_code( $redirect ) ) {
$this->set_repo_cache( 'release_asset', false );
$this->set_repo_cache( 'release_asset_response', false );
}
}
Expand Down

0 comments on commit c2038c5

Please sign in to comment.