[RFC PATCH v2 1/4] setup: normalize an if-else to follow our convention
- From
Kaartic Sivaraam <kaartic.sivaraam@gmail.com>
- Date
- Sep 29, 2026, 10:25 UTC
- Message-ID
- <20260929102513.712181-2-kaartic.sivaraam@gmail.com>
- In-Reply-To
- <20260929102513.712181-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 0d157ac254..e9a9ecda19 100644 --- a/setup.c +++ b/setup.c @@ -1879,8 +1879,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.56.0.rc1.12.g2c9c8d64bb