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>
Ævar Arnfjörð Bjarmason committed
Jan 5, 2021 at 20:42 UTC
dfe39487284af223737c58dd830261c2995f4fba
1 file changed
+1
-2
builtin/mktag.c
+1
-2
@@ -161,9 +161,8 @@ int cmd_mktag(int argc, const char **argv, const char *prefix)
161
if (argc != 1)
162
usage("git mktag");
163
164
- if (strbuf_read(&buf, 0, 0) < 0) {
164
+ if (strbuf_read(&buf, 0, 0) < 0)
165
die_errno("could not read from stdin");
166
- }
166
167
/* Verify it for some basic sanity: it needs to start with
168
"object <sha1>\ntype\ntagger " */