submodule--helper: add missing braces to "else" arm

Add missing braces to an "else" arm in init_submodule(), this stylistic change makes this code conform to the CodingGuidelines, and makes a subsequent commit smaller. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Reviewed-by: Glen Choo <chooglen@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Ævar Arnfjörð Bjarmason committed Sep 1, 2022 at 01:18 UTC 96a907376b10c42879dafc7f6b4842f8dbc04597
1 file changed +2 -1
builtin/submodule--helper.c
+2 -1
@@ -480,8 +480,9 @@ static void init_submodule(const char *path, const char *prefix,
480 fprintf(stderr, _("warning: command update mode suggested for submodule '%s'\n"),
481 sub->name);
482 upd = xstrdup("none");
483 - } else
483 + } else {
484 upd = xstrdup(submodule_strategy_to_string(&sub->update_strategy));
485 + }
486
487 if (git_config_set_gently(sb.buf, upd))
488 die(_("Failed to register update mode for submodule path '%s'"), displaypath);