[PATCH v3 1/5] setup: normalize an if-else to follow our convention
- From
Kaartic Sivaraam <kaartic.sivaraam@gmail.com>
- Date
- Oct 28, 2026, 11:53 UTC
- Message-ID
- <20261028115412.169748-2-kaartic.sivaraam@gmail.com>
- In-Reply-To
- <20261028115412.169748-1-kaartic.sivaraam@gmail.com>
The else case was not stuck with the corresponding if's closing brace which is not in-line with our convention. Fix the same.
This is a style-only change; no behaviour change intended.
Signed-off-by: Kaartic Sivaraam <kaartic.sivaraam@gmail.com> --- setup.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/setup.c b/setup.c index 61bcdafe82..4789b2d79d 100644 --- a/setup.c +++ b/setup.c @@ -1905,8 +1905,7 @@ const char *enter_repo(struct repository *repo, const char *path, unsigned flags if (chdir(used_path.buf)) return NULL; path = validated_path.buf; - } - else { + } else { const char *gitfile = read_gitfile(path); if (!(flags & ENTER_REPO_ANY_OWNER_OK)) die_upon_dubious_ownership(gitfile, NULL, path);
-- 2.55.0.1003.g10538fe699