Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 907adf4

Browse filesBrowse files
authored
[Mailer] Remove unneeded catch in ping()
The stop() method doesn't throw
1 parent c128d50 commit 907adf4
Copy full SHA for 907adf4

File tree

Expand file treeCollapse file tree

1 file changed

+1
-4
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-4
lines changed

‎src/Symfony/Component/Mailer/Transport/Smtp/SmtpTransport.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Mailer/Transport/Smtp/SmtpTransport.php
+1-4Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -219,10 +219,7 @@ private function ping(): void
219219
try {
220220
$this->executeCommand("NOOP\r\n", [250]);
221221
} catch (TransportExceptionInterface $e) {
222-
try {
223-
$this->stop();
224-
} catch (TransportExceptionInterface $e) {
225-
}
222+
$this->stop();
226223
}
227224
}
228225

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.