From 6c4ad411cc83a68086bebc24e814c3aea1cb8096 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Tue, 16 Aug 2011 08:50:40 +0200 Subject: [PATCH] notify_email plugin: Remove useless function and fix indentation. --- src/notify_email.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/src/notify_email.c b/src/notify_email.c index 08f865fc..6b4678a7 100644 --- a/src/notify_email.c +++ b/src/notify_email.c @@ -298,14 +298,11 @@ static int notify_email_notification (const notification_t *n, return (-1); } else { #if COLLECT_DEBUG - const smtp_status_t *status; - /* Report on the success or otherwise of the mail transfer. */ - status = smtp_message_transfer_status (message); - DEBUG ("notify_email plugin: SMTP server report: %d %s", - status->code, (status->text != NULL) ? status->text : "\n"); - #else - //I don't know if the function below has side affects so i'm calling it to be on the safe side. - smtp_message_transfer_status (message); + const smtp_status_t *status; + /* Report on the success or otherwise of the mail transfer. */ + status = smtp_message_transfer_status (message); + DEBUG ("notify_email plugin: SMTP server report: %d %s", + status->code, (status->text != NULL) ? status->text : "\n"); #endif smtp_enumerate_recipients (message, print_recipient_status, NULL); } -- 2.11.0