submodule-config: combine early return code into one goto
commit0918e25077cb9321011a973703cc597b078f0ab5
authorHeiko Voigt <hvoigt@hvoigt.net>
Thu, 28 Jul 2016 12:49:47 +0000 (28 14:49 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 28 Jul 2016 20:05:31 +0000 (28 13:05 -0700)
tree6b2c4aca60fe7dd0604c67ab3027db44b42e89db
parent514dea905a3c72c8f7268347793f2947efd547be
submodule-config: combine early return code into one goto

So we have simpler return handling code and all the cleanup code in
almost one place.

Signed-off-by: Heiko Voigt <hvoigt@hvoigt.net>
Reviewed-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
submodule-config.c