Commit 2ec7b2914ae81ff4eb8037f6dd4e641552f9e001

Colin Stolley 2021-12-24T10:47: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
diff --git a/src/refdb_fs.c b/src/refdb_fs.c
index adedc8d..a470ef9 100644
--- a/src/refdb_fs.c
+++ b/src/refdb_fs.c
@@ -610,9 +610,8 @@ cmp_record_to_refname(const char *rec, size_t data_end, const char *ref_name)
 
 	cmp_val = memcmp(rec, ref_name, min(ref_len, data_end));
 
-	if (cmp_val == 0 && data_end != ref_len) {
+	if (cmp_val == 0 && data_end != ref_len)
 		return (data_end > ref_len) ? 1 : -1;
-	}
 	return cmp_val;
 }