Commit 864535cf850973378c8283f62347055d2593c685

Ben Straub 2014-02-18T14:07:42

Readability

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/repository.c b/src/repository.c
index 89ae324..96ed306 100644
--- a/src/repository.c
+++ b/src/repository.c
@@ -2006,5 +2006,7 @@ int git_repository_is_shallow(git_repository *repo)
 		return 0;
 	}
 
-	return error < 0 ? error : st.st_size == 0 ? 0 : 1;
+	if (error < 0)
+		return error;
+	return st.st_size == 0 ? 0 : 1;
 }