Skip to content

Commit 920734b

Browse files
pcloudsgitster
authored andcommitted
index-pack: remove dead code (it should never happen)
Signed-off-by: Nguyễn Thái Ngọc Duy <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 6035d6a commit 920734b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

builtin/index-pack.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -747,8 +747,7 @@ static void sha1_object(const void *data, struct object_entry *obj_entry,
747747
int eaten;
748748
void *buf = (void *) data;
749749

750-
if (!buf)
751-
buf = new_data = get_data_from_pack(obj_entry);
750+
assert(data && "data can only be NULL for large _blobs_");
752751

753752
/*
754753
* we do not need to free the memory here, as the

0 commit comments

Comments
 (0)