Commit 4c06f61280f260fc52c2b3811c7ecd69d51de4d8

Stefan Sperling 2020-03-18T16:13:45

remove now pointless error check

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
diff --git a/libexec/got-index-pack/got-index-pack.c b/libexec/got-index-pack/got-index-pack.c
index 48fa85b..dcf1300 100644
--- a/libexec/got-index-pack/got-index-pack.c
+++ b/libexec/got-index-pack/got-index-pack.c
@@ -711,14 +711,6 @@ index_pack(struct got_pack *pack, int idxfd, uint8_t *pack_hash,
 			goto done;
 			
 		}
-		if (nloose + nresolved == nobj) {
-			static char msg[64];
-			snprintf(msg, sizeof(msg),
-			    "fix point reached too early: %d/%d/%d",
-			    nvalid, nresolved, nobj);
-			err = got_error_msg(GOT_ERR_BAD_PACKFILE, msg);
-			goto done;
-		}
 		nresolved += n;
 		nvalid += nresolved;
 	}