Commit 207840d83257a42c5ba39a4490ab04c060142cfe

Colin Stolley 2021-12-24T10:48:02

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
diff --git a/src/refdb_fs.c b/src/refdb_fs.c
index a470ef9..4d5ed7c 100644
--- a/src/refdb_fs.c
+++ b/src/refdb_fs.c
@@ -654,9 +654,8 @@ static int packed_lookup(
 	if ((error = packed_map_check(backend)) < 0)
 		return error;
 
-	if (!backend->sorted) {
+	if (!backend->sorted)
 		return packed_unsorted_lookup(out, backend, ref_name);
-	}
 
 	left = backend->packed_refs_map.data;
 	right = data_end = ((const char *)backend->packed_refs_map.data) +