]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
indexer-worker: master_connection_cmd_index() - Reduce indent
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Mon, 31 Jan 2022 21:48:10 +0000 (22:48 +0100)
committertimo.sirainen <timo.sirainen@open-xchange.com>
Sun, 13 Feb 2022 10:23:26 +0000 (10:23 +0000)
src/indexer/master-connection.c

index b7af7a12d9718559248604f758185f73cf983e2b..c15bbcb3a2504cc589fc27d4d7b01b555e9d1b22 100644 (file)
@@ -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;
 }