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