Commit 60faa6310e39bdd00f30f6a74e11902f80e18e18

Colin Stolley 2022-01-13T17:32:48

Drop redundant check in packed_set_peeling_mode(). Co-authored-by: Edward Thomson <ethomson@github.com>

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/src/refdb_fs.c b/src/refdb_fs.c
index 4d01adf..98b25e8 100644
--- a/src/refdb_fs.c
+++ b/src/refdb_fs.c
@@ -460,10 +460,6 @@ static char *packed_set_peeling_mode(
 	char *eol;
 	backend->peeling_mode = PEELING_NONE;
 
-	if (data_sz == 0 || *data != '#') {
-		return data;
-	}
-
 	if (git__prefixncmp(data, data_sz, traits_header) == 0) {
 		size_t hdr_sz = strlen(traits_header);
 		const char *sorted = " sorted ";