Skip to content

Commit 1fc666f

Browse files
mikefoxMaxime Pinot
authored and
Maxime Pinot
committed
Remove if statement.
1 parent 87f3d32 commit 1fc666f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Symfony/Component/Mailer/Bridge/Sendgrid/Transport/SendgridApiTransport.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,7 @@ private function getPayload(Email $email, Envelope $envelope): array
146146
}
147147

148148
foreach ($envelope->getOptions() as $name => $value) {
149-
if ('mail_settings' === $name) {
150-
$payload['mail_settings'] = $value;
151-
}
149+
$payload[$name] = $value;
152150
}
153151

154152
$payload['personalizations'][] = $personalization;

0 commit comments

Comments
 (0)