From e7b65b0136509561f00059f0492a27e9e71048ca Mon Sep 17 00:00:00 2001 From: Harshan Liyanage Date: Mon, 4 Sep 2017 12:07:05 +0530 Subject: [PATCH] Minor refactoring related to wso2/product-iots#1035 --- .../email/sender/core/service/EmailSenderServiceImpl.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/components/email-sender/org.wso2.carbon.email.sender.core/src/main/java/org/wso2/carbon/email/sender/core/service/EmailSenderServiceImpl.java b/components/email-sender/org.wso2.carbon.email.sender.core/src/main/java/org/wso2/carbon/email/sender/core/service/EmailSenderServiceImpl.java index 25ad6a7b45..befb45047e 100644 --- a/components/email-sender/org.wso2.carbon.email.sender.core/src/main/java/org/wso2/carbon/email/sender/core/service/EmailSenderServiceImpl.java +++ b/components/email-sender/org.wso2.carbon.email.sender.core/src/main/java/org/wso2/carbon/email/sender/core/service/EmailSenderServiceImpl.java @@ -62,12 +62,8 @@ public class EmailSenderServiceImpl implements EmailSenderService { } private boolean isMailServerConfigured() { - if(EmailSenderDataHolder.getInstance().getConfigurationContextService().getServerConfigContext(). - getAxisConfiguration().getTransportOut(TRANSPORT_SENDER_NAME) != null) { - return true; - } else { - return false; - } + return (EmailSenderDataHolder.getInstance().getConfigurationContextService().getServerConfigContext(). + getAxisConfiguration().getTransportOut(TRANSPORT_SENDER_NAME) != null); } @Override