Skip to content

Commit 82e69b0

Browse files
avargitster
authored andcommitted
ls-tree: add missing braces to "else" arms
Add missing {} to the "else" arms in show_tree() per the CodingGuidelines. Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 4e4566f commit 82e69b0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

builtin/ls-tree.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,16 @@ static int show_tree(const struct object_id *oid, struct strbuf *base,
9292
else
9393
xsnprintf(size_text, sizeof(size_text),
9494
"%"PRIuMAX, (uintmax_t)size);
95-
} else
95+
} else {
9696
xsnprintf(size_text, sizeof(size_text), "-");
97+
}
9798
printf("%06o %s %s %7s\t", mode, type,
9899
find_unique_abbrev(oid, abbrev),
99100
size_text);
100-
} else
101+
} else {
101102
printf("%06o %s %s\t", mode, type,
102103
find_unique_abbrev(oid, abbrev));
104+
}
103105
}
104106
baselen = base->len;
105107
strbuf_addstr(base, pathname);

0 commit comments

Comments
 (0)