Skip to content
Permalink
Browse files
No need to nest in else.
  • Loading branch information
garydgregory committed Mar 5, 2021
1 parent cdd7216 commit 4c10370ac86c1bf78548b9f39e8158a21d6796c9
Showing 1 changed file with 3 additions and 3 deletions.
@@ -1558,7 +1558,7 @@ public String getHostName()
{
return this.session.getProperty(EmailConstants.MAIL_HOST);
}
else if (EmailUtils.isNotEmpty(this.hostName))
if (EmailUtils.isNotEmpty(this.hostName))
{
return this.hostName;
}
@@ -1576,7 +1576,7 @@ public String getSmtpPort()
{
return this.session.getProperty(EmailConstants.MAIL_PORT);
}
else if (EmailUtils.isNotEmpty(this.smtpPort))
if (EmailUtils.isNotEmpty(this.smtpPort))
{
return this.smtpPort;
}
@@ -1746,7 +1746,7 @@ public String getSslSmtpPort()
{
return this.session.getProperty(EmailConstants.MAIL_SMTP_SOCKET_FACTORY_PORT);
}
else if (EmailUtils.isNotEmpty(this.sslSmtpPort))
if (EmailUtils.isNotEmpty(this.sslSmtpPort))
{
return this.sslSmtpPort;
}

0 comments on commit 4c10370

Please sign in to comment.