Skip to content

Commit

Permalink
no superfluous elseif
Browse files Browse the repository at this point in the history
Replaces superfluous elseif with if.
  • Loading branch information
MathiasReker committed Jun 16, 2022
1 parent a4d87ad commit b9b12cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/PHPMailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -2200,7 +2200,8 @@ public function smtpConnect($options = null)
//As we've caught all exceptions, just report whatever the last one was
if ($this->exceptions && null !== $lastexception) {
throw $lastexception;
} elseif ($this->exceptions) {
}
if ($this->exceptions) {
// no exception was thrown, likely $this->smtp->connect() failed
$message = $this->getSmtpErrorMessage('connect_host');
throw new Exception($message);
Expand Down

0 comments on commit b9b12cf

Please sign in to comment.