From: Sergey Vlasov Date: Wed, 21 Sep 2005 16:34:19 +0000 (+0400) Subject: [PATCH] fetch.c: Remove redundant test of TO_SCAN in process() X-Git-Tag: v0.99.7b~1^2~2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2449696bcd8b458ae604c35898ecab7271b97b40;p=git.git [PATCH] fetch.c: Remove redundant test of TO_SCAN in process() If the SEEN flag was not set, the TO_SCAN flag cannot be set, therefore testing it is pointless. Signed-off-by: Sergey Vlasov Signed-off-by: Junio C Hamano --- diff --git a/fetch.c b/fetch.c index 3074f5f35..21b373d19 100644 --- a/fetch.c +++ b/fetch.c @@ -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)