Skip to content

Commit

Permalink
[PATCH] fetch.c: Remove redundant test of TO_SCAN in process()
Browse files Browse the repository at this point in the history
If the SEEN flag was not set, the TO_SCAN flag cannot be set,
therefore testing it is pointless.

Signed-off-by: Sergey Vlasov <vsu@altlinux.ru>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Sergey Vlasov authored and Junio C Hamano committed Sep 23, 2005
1 parent 7b64d06 commit 2449696
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions fetch.c
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,6 @@ static int process(struct object *obj)
if (has_sha1_file(obj->sha1)) {
parse_object(obj->sha1);
/* We already have it, so we should scan it now. */
if (obj->flags & TO_SCAN)
return 0;
obj->flags |= TO_SCAN;
} else {
if (obj->flags & COMPLETE)
Expand Down

0 comments on commit 2449696

Please sign in to comment.