Skip to content

Commit 61781dd

Browse files
[Mailer] Remove useless sprintf() call
1 parent 22213fc commit 61781dd

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Symfony/Component/Mailer/Bridge/Postal/Transport/PostalApiTransport.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,7 @@ public function __toString(): string
4444

4545
protected function doSendApi(SentMessage $sentMessage, Email $email, Envelope $envelope): ResponseInterface
4646
{
47-
$path = \sprintf('/api/v1/send/message');
48-
49-
$response = $this->client->request('POST', 'https://'.$this->getEndpoint().$path, [
47+
$response = $this->client->request('POST', 'https://'.$this->getEndpoint().'/api/v1/send/message', [
5048
'json' => $this->getPayload($email, $envelope),
5149
'headers' => [
5250
'X-Server-API-Key' => $this->apiToken,

0 commit comments

Comments
 (0)