From 609faf6e3f57f41c265c1243b273006bb9036620 Mon Sep 17 00:00:00 2001 From: Magnus Melin Date: Mon, 21 Dec 2020 13:55:15 +0200 Subject: [PATCH] Bug 1677338 - followup - apply clang-format. rs=clang-format --- mailnews/compose/src/nsSmtpProtocol.cpp | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/mailnews/compose/src/nsSmtpProtocol.cpp b/mailnews/compose/src/nsSmtpProtocol.cpp index 0b27c5954c..6378a9c0c2 100644 --- a/mailnews/compose/src/nsSmtpProtocol.cpp +++ b/mailnews/compose/src/nsSmtpProtocol.cpp @@ -1704,11 +1704,9 @@ nsresult nsSmtpProtocol::SendMailResponse() { if ((m_responseCodeEnhanced == 570) || (m_responseCodeEnhanced == 571)) errorcode = NS_ERROR_SMTP_SEND_NOT_ALLOWED; else if (TestFlag(SMTP_EHLO_SIZE_ENABLED)) - errorcode = (m_responseCode == 452) - ? NS_ERROR_SMTP_TEMP_SIZE_EXCEEDED - : (m_responseCode == 552) - ? NS_ERROR_SMTP_PERM_SIZE_EXCEEDED_2 - : NS_ERROR_SENDING_FROM_COMMAND; + errorcode = (m_responseCode == 452) ? NS_ERROR_SMTP_TEMP_SIZE_EXCEEDED + : (m_responseCode == 552) ? NS_ERROR_SMTP_PERM_SIZE_EXCEEDED_2 + : NS_ERROR_SENDING_FROM_COMMAND; else errorcode = NS_ERROR_SENDING_FROM_COMMAND; @@ -1803,11 +1801,9 @@ nsresult nsSmtpProtocol::SendRecipientResponse() { if ((m_responseCodeEnhanced == 570) || (m_responseCodeEnhanced == 571)) errorcode = NS_ERROR_SMTP_SEND_NOT_ALLOWED; else if (TestFlag(SMTP_EHLO_SIZE_ENABLED)) - errorcode = (m_responseCode == 452) - ? NS_ERROR_SMTP_TEMP_SIZE_EXCEEDED - : (m_responseCode == 552) - ? NS_ERROR_SMTP_PERM_SIZE_EXCEEDED_2 - : NS_ERROR_SENDING_RCPT_COMMAND; + errorcode = (m_responseCode == 452) ? NS_ERROR_SMTP_TEMP_SIZE_EXCEEDED + : (m_responseCode == 552) ? NS_ERROR_SMTP_PERM_SIZE_EXCEEDED_2 + : NS_ERROR_SENDING_RCPT_COMMAND; else errorcode = NS_ERROR_SENDING_RCPT_COMMAND;