Thread (30 messages) 30 messages, 3 authors, 1d ago

[PATCH v3 1/5] setup: normalize an if-else to follow our convention

flat view
WARM1d

From: Kaartic Sivaraam <hidden>
Date: 2026-10-28 11:54:48
Subsystem: the rest · Maintainer: Linus Torvalds

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 <redacted>
---
 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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help