Skip to content

Commit

Permalink
Improve code
Browse files Browse the repository at this point in the history
  • Loading branch information
romanmatyus committed Feb 24, 2020
1 parent 76506f2 commit a975189
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/RM/SMSender/BaseSender.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,8 @@ public function setDebugMode(bool $value) : ISender

public function getHttpClient() : GuzzleHttp\Client
{
if ($this->httpClient instanceof GuzzleHttp\Client)
return $this->httpClient;
$this->httpClient = new GuzzleHttp\Client;
if (!($this->httpClient instanceof GuzzleHttp\Client))
$this->httpClient = new GuzzleHttp\Client;
return $this->httpClient;
}
}

0 comments on commit a975189

Please sign in to comment.