Commit 620e3abcd4b4da0196296bd1269840c5ad286576

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

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 829983f..f682676 100644
--- a/src/refdb_fs.c
+++ b/src/refdb_fs.c
@@ -500,9 +500,8 @@ static int packed_map_check(refdb_fs_backend *backend)
 	git_file fd = -1;
 	struct stat st;
 
-	if ((error = git_mutex_lock(&backend->prlock)) < 0) {
+	if ((error = git_mutex_lock(&backend->prlock)) < 0)
 		return error;
-	}
 
 	if (backend->packed_refs_map.data) {
 		git_mutex_unlock(&backend->prlock);