Commit c55275ff0b31bc24e4c39062db3598b339e68e20

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

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
diff --git a/src/refdb_fs.c b/src/refdb_fs.c
index f682676..f05510e 100644
--- a/src/refdb_fs.c
+++ b/src/refdb_fs.c
@@ -483,11 +483,7 @@ static char *packed_set_peeling_mode(
 			backend->peeling_mode = PEELING_STANDARD;
 		}
 
-		if (git__memmem(data, eol - data, sorted, strlen(sorted))) {
-			backend->sorted = true;
-		} else {
-			backend->sorted = false;
-		}
+		backend->sorted = git__memmem(data, eol - data, sorted, strlen(sorted));
 
 		return eol + 1;
 	}