8000 Simplify code · symfony/symfony@803a998 · GitHub
[go: up one dir, main page]

Skip to content

Commit 803a998

Browse files
committed
Simplify code
1 parent 1e91b1a commit 803a998

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Component/Notifier/Bridge/Smsapi/SmsapiTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ protected function doSend(MessageInterface $message): SentMessage
7979
throw new TransportException('Could not decode body to an array.', $response, 0, $e);
8080
}
8181

82-
if ((isset($content['error']) && null !== $content['error']) || (200 !== $statusCode)) {
82+
if (isset($content['error']) || 200 !== $statusCode) {
8383
throw new TransportException(sprintf('Unable to send the SMS: "%s".', $content['message'] ?? 'unknown error'), $response);
8484
}
8585

0 commit comments

Comments
 (0)
0