]> git.ipfire.org Git - thirdparty/git.git/commitdiff
mktag: remove redundant braces in one-line body "if"
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Tue, 5 Jan 2021 19:42:44 +0000 (20:42 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 5 Jan 2021 22:58:29 +0000 (14:58 -0800)
This minor stylistic churn is usually something we'd avoid, but if we
don't do this then the file after changes in subsequent commits will
only have this minor style inconsistency, so let's change this while
we're at it.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/mktag.c

index ff7ac8e0e5dbfe77ca16d2304b944a30c14ca408..97ca5f28b1b0cb437e52a8c14dbc25a7a9b3f3eb 100644 (file)
@@ -161,9 +161,8 @@ int cmd_mktag(int argc, const char **argv, const char *prefix)
        if (argc != 1)
                usage("git mktag");
 
-       if (strbuf_read(&buf, 0, 0) < 0) {
+       if (strbuf_read(&buf, 0, 0) < 0)
                die_errno("could not read from stdin");
-       }
 
        /* Verify it for some basic sanity: it needs to start with
           "object <sha1>\ntype\ntagger " */