Remove redundant check.

This commit is contained in:
budzanowski 2020-07-21 18:41:34 +02:00
parent 0a10d64394
commit 2d8f308a08
1 changed files with 0 additions and 5 deletions

View File

@ -237,11 +237,6 @@ class WC_Helper_Updater {
return array();
}
// General error.
if ( is_wp_error( $raw_response ) ) {
return array();
}
$response = json_decode( wp_remote_retrieve_body( $raw_response ), true );
// API error, api returned but something was wrong.