From c42bf0f907f7c2cdd9f432f0ffad76f5eaa683e4 Mon Sep 17 00:00:00 2001
From: Stephan Bosch <stephan.bosch@open-xchange.com>
Date: Sun, 20 Oct 2019 13:39:24 +0200
Subject: [PATCH] managesieve: Reformat cmd-listscripts.c.

---
 src/managesieve/cmd-listscripts.c | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/src/managesieve/cmd-listscripts.c b/src/managesieve/cmd-listscripts.c
index 21d925238..b5d692c76 100644
--- a/src/managesieve/cmd-listscripts.c
+++ b/src/managesieve/cmd-listscripts.c
@@ -14,18 +14,17 @@
 
 bool cmd_listscripts(struct client_command_context *cmd)
 {
-  struct client *client = cmd->client;
+	struct client *client = cmd->client;
 	struct sieve_storage_list_context *ctx;
 	const char *scriptname;
 	bool active;
 	string_t *str;
 
 	/* no arguments */
-	if ( !client_read_no_args(cmd) )
+	if (!client_read_no_args(cmd))
 		return FALSE;
 
-	if ( (ctx = sieve_storage_list_init(client->storage))
-		== NULL ) {
+	if ((ctx = sieve_storage_list_init(client->storage)) == NULL) {
 		client_send_storage_error(client, client->storage);
 		return TRUE;
 	}
@@ -40,14 +39,14 @@ bool cmd_listscripts(struct client_command_context *cmd)
 
 			managesieve_quote_append_string(str, scriptname, FALSE);
 
-			if ( active )
+			if (active)
 				str_append(str, " ACTIVE");
 
 			client_send_line(client, str_c(str));
 		} T_END;
 	}
 
-	if ( sieve_storage_list_deinit(&ctx) < 0 ) {
+	if (sieve_storage_list_deinit(&ctx) < 0) {
 		client_send_storage_error(client, client->storage);
 		return TRUE;
 	}
-- 
GitLab