Skip to content

Commit

Permalink
Merge pull request #2 from toriqahmads/development
Browse files Browse the repository at this point in the history
remove exception smsviro
  • Loading branch information
toriqahmads committed Oct 3, 2020
2 parents dc0699d + 22b9ae4 commit 3886bc8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/SmsViro.php
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,6 @@ public function sendSms($to, string $text)
$response = $httpRequest->request("POST", $this->endpoint, ["body" => json_encode($requestBody)]);
$this->setResponse($response);

if ($this->getStatusCode() !== 200) {
throw new SmsViroException("Error while sending sms");
}

return $this;
}

Expand Down

0 comments on commit 3886bc8

Please sign in to comment.