Commit 99fc3d496c9ae4ba24334bba30c7cacf21c9e24a

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

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 c9b0da7..829983f 100644
--- a/src/refdb_fs.c
+++ b/src/refdb_fs.c
@@ -142,9 +142,8 @@ static int packed_reload(refdb_fs_backend *backend)
 	eof  = scan + packedrefs.size;
 
 	scan = packed_set_peeling_mode(scan, packedrefs.size, backend);
-	if (!scan) {
+	if (!scan)
 		goto parse_failed;
-	}
 
 	while (scan < eof && *scan == '#') {
 		if (!(eol = strchr(scan, '\n')))