From: Timo Sirainen Date: Mon, 31 Jan 2022 21:48:10 +0000 (+0100) Subject: indexer-worker: master_connection_cmd_index() - Reduce indent X-Git-Tag: 2.4.0~4427 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=02abacac5bfa7d956a1158379a0240095a686b59;p=thirdparty%2Fdovecot%2Fcore.git indexer-worker: master_connection_cmd_index() - Reduce indent --- diff --git a/src/indexer/master-connection.c b/src/indexer/master-connection.c index b7af7a12d9..c15bbcb3a2 100644 --- a/src/indexer/master-connection.c +++ b/src/indexer/master-connection.c @@ -270,20 +270,20 @@ master_connection_cmd_index(struct master_connection *conn, &service_user, &user, &error) <= 0) { e_error(conn->conn.event, "User %s lookup failed: %s", username, error); - ret = -1; - } else { - indexer_worker_refresh_proctitle(user->username, mailbox, 0, 0); - struct event_reason *reason = - event_reason_begin("indexer:index_mailbox"); - ret = index_mailbox(conn, user, mailbox, max_recent_msgs, what); - event_reason_end(&reason); - /* refresh proctitle before a potentially long-running - user unref */ - indexer_worker_refresh_proctitle(user->username, "(deinit)", 0, 0); - mail_user_deinit(&user); - mail_storage_service_user_unref(&service_user); - indexer_worker_refresh_proctitle(NULL, NULL, 0, 0); + return -1; } + + indexer_worker_refresh_proctitle(user->username, mailbox, 0, 0); + struct event_reason *reason = + event_reason_begin("indexer:index_mailbox"); + ret = index_mailbox(conn, user, mailbox, max_recent_msgs, what); + event_reason_end(&reason); + /* refresh proctitle before a potentially long-running + user unref */ + indexer_worker_refresh_proctitle(user->username, "(deinit)", 0, 0); + mail_user_deinit(&user); + mail_storage_service_user_unref(&service_user); + indexer_worker_refresh_proctitle(NULL, NULL, 0, 0); return ret; }