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 <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Ævar Arnfjörð Bjarmason committed Jan 7, 2021 at 10:51 UTC 75c50e599ca4fe2fcf864cfa491c8035513e6cdb
1 file changed +3 -3
ref-filter.c
+3 -3
@@ -2364,11 +2364,11 @@ static int cmp_ref_sorting(struct ref_sorting *s, struct ref_array_item *a, stru
2364 die("%s", err.buf);
2365 strbuf_release(&err);
2366 cmp_fn = s->ignore_case ? strcasecmp : strcmp;
2367 - if (s->version)
2367 + if (s->version) {
2368 cmp = versioncmp(va->s, vb->s);
2369 - else if (cmp_type == FIELD_STR)
2369 + } else if (cmp_type == FIELD_STR) {
2370 cmp = cmp_fn(va->s, vb->s);
2371 - else {
2371 + } else {
2372 if (va->value < vb->value)
2373 cmp = -1;
2374 else if (va->value == vb->value)