[PATCH v2 1/3] cli: config: remove unnecessary braces from if blocks
authorJani Nikula <jani@nikula.org>
Sat, 30 Mar 2013 14:21:20 +0000 (16:21 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:54:07 +0000 (09:54 -0800)
82/5717806f086bb865dc83bf369575b69b481317 [new file with mode: 0644]

diff --git a/82/5717806f086bb865dc83bf369575b69b481317 b/82/5717806f086bb865dc83bf369575b69b481317
new file mode 100644 (file)
index 0000000..19dfa00
--- /dev/null
@@ -0,0 +1,123 @@
+Return-Path: <jani@nikula.org>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 481B9429E34\r
+       for <notmuch@notmuchmail.org>; Sat, 30 Mar 2013 07:21:38 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References"\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id nR8Y6Aeq2Apw for <notmuch@notmuchmail.org>;\r
+       Sat, 30 Mar 2013 07:21:37 -0700 (PDT)\r
+Received: from mail-la0-f49.google.com (mail-la0-f49.google.com\r
+       [209.85.215.49]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 6763D431FDC\r
+       for <notmuch@notmuchmail.org>; Sat, 30 Mar 2013 07:21:33 -0700 (PDT)\r
+Received: by mail-la0-f49.google.com with SMTP id fs13so1133721lab.36\r
+       for <notmuch@notmuchmail.org>; Sat, 30 Mar 2013 07:21:31 -0700 (PDT)\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+       d=google.com; s=20120113;\r
+       h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to\r
+       :references:in-reply-to:references:x-gm-message-state;\r
+       bh=VpMHUZvJUH8wIAVhWFcqfTbi+IIuuffezwVd4CILVbU=;\r
+       b=OVZZ/5FY0oPXeIi0YU+9gj6yKK65gIQQj+5LtQCVRI1UrrR1HtP8jBRrZZbjb+v4Ux\r
+       WZGYK9p0cq2vcYSyY5PX+TMSYEY1kCeDYdNG9cMG3sN1u5tREhvHI2OZ3zGM6kfvzsGY\r
+       mtZWIM9qwYQGskS8YW9Knp4+Axf+rHoxf1Kganoxiso7BQAHVJQx52Ol514RDecny1M4\r
+       pmVpbcbrpI4zlZN3Vjlpqb3fCxWwe9dYuB3//3VusK36TF7mah4dY2PH41VKoSeKRfNJ\r
+       v+BVokL7tgNOqKXnbzqRLlFaM4FxVNn2OTfGPPFqqo21Me+y4Ku69n+dafkwJ4Y7SJu3\r
+       h0eg==\r
+X-Received: by 10.112.136.4 with SMTP id pw4mr2479583lbb.79.1364653291735;\r
+       Sat, 30 Mar 2013 07:21:31 -0700 (PDT)\r
+Received: from localhost (dsl-hkibrasgw4-50df51-27.dhcp.inet.fi.\r
+       [80.223.81.27])\r
+       by mx.google.com with ESMTPS id kw9sm2678651lbb.4.2013.03.30.07.21.30\r
+       (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
+       Sat, 30 Mar 2013 07:21:30 -0700 (PDT)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH v2 1/3] cli: config: remove unnecessary braces from if blocks\r
+Date: Sat, 30 Mar 2013 16:21:20 +0200\r
+Message-Id:\r
+ <62be6f90ea9cad32de9d04a04cf2aa3b2c223f3d.1364652420.git.jani@nikula.org>\r
+X-Mailer: git-send-email 1.7.10.4\r
+In-Reply-To: <cover.1364652420.git.jani@nikula.org>\r
+References: <cover.1364652420.git.jani@nikula.org>\r
+In-Reply-To: <cover.1364652420.git.jani@nikula.org>\r
+References: <cover.1364652420.git.jani@nikula.org>\r
+X-Gm-Message-State:\r
+ ALoCoQkBkVZvCB/qqD3TtGXJ4bfHYm/sGHO1yXBwrR4klLLa3O+AJHy5SqdaV62lvwuAHmvDFRuo\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sat, 30 Mar 2013 14:21:38 -0000\r
+\r
+Cosmetic change to drop unnecessary braces that don't even conform to\r
+the prevailing coding style.\r
+---\r
+ notmuch-config.c |   13 +------------\r
+ 1 file changed, 1 insertion(+), 12 deletions(-)\r
+\r
+diff --git a/notmuch-config.c b/notmuch-config.c\r
+index 48312e3..66a1cdf 100644\r
+--- a/notmuch-config.c\r
++++ b/notmuch-config.c\r
+@@ -395,39 +395,28 @@ notmuch_config_open (void *ctx,\r
+      * the configuration file, we add some comments to help the user\r
+      * understand what can be done. */\r
+     if (config->is_new)\r
+-    {\r
+       g_key_file_set_comment (config->key_file, NULL, NULL,\r
+                               toplevel_config_comment, NULL);\r
+-    }\r
\r
+     if (! file_had_database_group)\r
+-    {\r
+       g_key_file_set_comment (config->key_file, "database", NULL,\r
+                               database_config_comment, NULL);\r
+-    }\r
\r
+     if (! file_had_new_group)\r
+-    {\r
+       g_key_file_set_comment (config->key_file, "new", NULL,\r
+                               new_config_comment, NULL);\r
+-    }\r
\r
+     if (! file_had_user_group)\r
+-    {\r
+       g_key_file_set_comment (config->key_file, "user", NULL,\r
+                               user_config_comment, NULL);\r
+-    }\r
\r
+     if (! file_had_maildir_group)\r
+-    {\r
+       g_key_file_set_comment (config->key_file, "maildir", NULL,\r
+                               maildir_config_comment, NULL);\r
+-    }\r
\r
+-    if (! file_had_search_group) {\r
++    if (! file_had_search_group)\r
+       g_key_file_set_comment (config->key_file, "search", NULL,\r
+                               search_config_comment, NULL);\r
+-    }\r
\r
+     return config;\r
+ }\r
+-- \r
+1.7.10.4\r
+\r