@matheusbsbs / matheus-bagliano / commits / a85988d292
Fork 0

[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 <vsu@altlinux.ru> Signed-off-by: Junio C Hamano <junkio@cox.net>

Sergey Vlasov committed Sep 21, 2005 at 20:34 UTC a85988d292152cd758026d542dff16cc9c6020a6
1 file changed -2
fetch.c
-2
@@ -136,8 +136,6 @@ static int process(struct object *obj)
136 if (has_sha1_file(obj->sha1)) {
137 parse_object(obj->sha1);
138 /* We already have it, so we should scan it now. */
139 - if (obj->flags & TO_SCAN)
140 - return 0;
139 obj->flags |= TO_SCAN;
140 } else {
141 if (obj->flags & COMPLETE)