Skip to content

Commit dfe3948

Browse files
avargitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 0c43911 commit dfe3948

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

builtin/mktag.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,9 +161,8 @@ int cmd_mktag(int argc, const char **argv, const char *prefix)
161161
if (argc != 1)
162162
usage("git mktag");
163163

164-
if (strbuf_read(&buf, 0, 0) < 0) {
164+
if (strbuf_read(&buf, 0, 0) < 0)
165165
die_errno("could not read from stdin");
166-
}
167166

168167
/* Verify it for some basic sanity: it needs to start with
169168
"object <sha1>\ntype\ntagger " */

0 commit comments

Comments
 (0)