Commit b162bb359525d4fadf48fd74f69a217f93210e49

Colin Stolley 2022-01-13T17:20:53

Update src/refdb_fs.c Co-authored-by: Edward Thomson <ethomson@github.com>

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
diff --git a/src/refdb_fs.c b/src/refdb_fs.c
index f05510e..2a80337 100644
--- a/src/refdb_fs.c
+++ b/src/refdb_fs.c
@@ -477,11 +477,10 @@ static char *packed_set_peeling_mode(
 		if (!eol)
 			return NULL;
 
-		if (git__memmem(data, eol - data, fully_peeled, strlen(fully_peeled))) {
+		if (git__memmem(data, eol - data, fully_peeled, strlen(fully_peeled)))
 			backend->peeling_mode = PEELING_FULL;
-		} else if (git__memmem(data, eol - data, peeled, strlen(peeled))) {
+		else if (git__memmem(data, eol - data, peeled, strlen(peeled)))
 			backend->peeling_mode = PEELING_STANDARD;
-		}
 
 		backend->sorted = git__memmem(data, eol - data, sorted, strlen(sorted));