Skip to content

Commit 75c50e5

Browse files
avargitster
authored andcommitted
ref-filter: add braces to if/else if/else chain
Per the CodingGuidelines add braces to an if/else if/else chain where only the "else" had braces. This is in preparation for a subsequent change where the "else if" will have lines added to it. Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 08bf6a8 commit 75c50e5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ref-filter.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2364,11 +2364,11 @@ static int cmp_ref_sorting(struct ref_sorting *s, struct ref_array_item *a, stru
23642364
die("%s", err.buf);
23652365
strbuf_release(&err);
23662366
cmp_fn = s->ignore_case ? strcasecmp : strcmp;
2367-
if (s->version)
2367+
if (s->version) {
23682368
cmp = versioncmp(va->s, vb->s);
2369-
else if (cmp_type == FIELD_STR)
2369+
} else if (cmp_type == FIELD_STR) {
23702370
cmp = cmp_fn(va->s, vb->s);
2371-
else {
2371+
} else {
23722372
if (va->value < vb->value)
23732373
cmp = -1;
23742374
else if (va->value == vb->value)

0 commit comments

Comments
 (0)