Skip to content

Commit 5de0c01

Browse files
mhaggergitster
authored andcommitted
find_first_merges(): remove unnecessary code
No names are ever set for the object_array_entries in merges, so there is no need to pretend to copy them to the result array. Signed-off-by: Michael Haggerty <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 3826902 commit 5de0c01

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

submodule.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -893,8 +893,7 @@ static int find_first_merges(struct object_array *result, const char *path,
893893
}
894894

895895
if (!contains_another)
896-
add_object_array(merges.objects[i].item,
897-
merges.objects[i].name, result);
896+
add_object_array(merges.objects[i].item, NULL, result);
898897
}
899898

900899
free(merges.objects);

0 commit comments

Comments
 (0)