Update src/refdb_fs.c Co-authored-by: Edward Thomson <ethomson@github.com>
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;
}