diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2021-01-05 20:42:44 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-01-05 14:58:29 -0800 |
commit | dfe39487284af223737c58dd830261c2995f4fba (patch) | |
tree | 279001506ccee63fd932ff9cd9fb6224b5665900 /builtin/mktag.c | |
parent | mktag: use default strbuf_read() hint (diff) | |
download | tgif-dfe39487284af223737c58dd830261c2995f4fba.tar.xz |
mktag: remove redundant braces in one-line body "if"
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>
Diffstat (limited to 'builtin/mktag.c')
-rw-r--r-- | builtin/mktag.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/builtin/mktag.c b/builtin/mktag.c index ff7ac8e0e5..97ca5f28b1 100644 --- a/builtin/mktag.c +++ b/builtin/mktag.c @@ -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 " */ |