Skip to content

Commit

Permalink
No need to test edge cases.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan0sz committed Jul 16, 2024
1 parent feb0248 commit 9dddffb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ClientFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ public function build() {
* cURL or allow_url_fopen ini setting is required for GuzzleHttp to function properly.
*/
if ( ! extension_loaded( 'curl' ) && ! ini_get( 'allow_url_fopen' ) ) {
add_action( 'init', [ $this, 'add_curl_error' ] );
add_action( 'init', [ $this, 'add_curl_error' ] ); // @codeCoverageIgnore

return false;
return false; // @codeCoverageIgnore
}

return new Client( $this->token );
Expand Down

0 comments on commit 9dddffb

Please sign in to comment.