From 4cfb84c573f21ca7519e24cff1c5742b715355c4 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sat, 7 May 2011 12:22:36 -0400 Subject: Whitespace and coding style cleanups. --- mail/e-mail-store.c | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'mail/e-mail-store.c') diff --git a/mail/e-mail-store.c b/mail/e-mail-store.c index 6313640f93..214efb0bb3 100644 --- a/mail/e-mail-store.c +++ b/mail/e-mail-store.c @@ -248,7 +248,8 @@ mail_store_load_accounts (EMailSession *session, if (!account->enabled) continue; - /* Do not add local-delivery files, but make them ready for later use. */ + /* Do not add local-delivery files, + * but make them ready for later use. */ url = camel_url_new (account->source->url, NULL); if (url != NULL) { skip = em_utils_is_local_delivery_mbox_file (url); @@ -258,10 +259,17 @@ mail_store_load_accounts (EMailSession *session, if (skip) { GError *error = NULL; - if (!camel_session_add_service (CAMEL_SESSION (session), account->uid, account->source->url, CAMEL_PROVIDER_STORE, &error)) { - g_warning ("%s: Failed to add '%s' as store: %s", G_STRFUNC, account->source->url, error ? error->message : "Unknown error"); - if (error) - g_error_free (error); + camel_session_add_service ( + CAMEL_SESSION (session), + account->uid, account->source->url, + CAMEL_PROVIDER_STORE, &error); + + if (error != NULL) { + g_warning ( + "Failed to add '%s' as store: %s", + account->source->url, + error->message); + g_error_free (error); } } else { e_mail_store_add_by_account (session, account); -- cgit v1.2.3