Commit Diff


commit - f826addf6c9cb9f000276eda59137f01fe9a037e
commit + b3e1118bde980161ce70aab03aee6f5b99662e4d
blob - f64e53033279fba0a88a4ca4234ad50182f293aa
blob + 48fa85bcf582b90e8f8ed64dbd3de8d181942d21
--- libexec/got-index-pack/got-index-pack.c
+++ libexec/got-index-pack/got-index-pack.c
@@ -676,11 +676,10 @@ index_pack(struct got_pack *pack, int idxfd, uint8_t *
 			if (obj->valid)
 				continue;
 
-			if (pack->map == NULL &&
-			    lseek(pack->fd, obj->off + obj->tslen, SEEK_SET)
-			    == -1) {
-					err = got_error_from_errno("lseek");
-					goto done;
+			if (pack->map == NULL && lseek(pack->fd,
+			    obj->off + obj->tslen, SEEK_SET) == -1) {
+				err = got_error_from_errno("lseek");
+				goto done;
 			}
 
 			err = resolve_deltified_object(pack, &packidx, obj);