diff options
author | Sergey Vlasov <vsu@altlinux.ru> | 2005-09-21 20:34:19 +0400 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-09-21 12:32:32 -0700 |
commit | a85988d292152cd758026d542dff16cc9c6020a6 (patch) | |
tree | 2b5ca962027c5e010e5da11ec2cbf1ed571755c8 | |
parent | 5de0bfffbc3e32ca3574987a350b984d4a899f2e (diff) | |
download | git-a85988d292152cd758026d542dff16cc9c6020a6.tar.gz git-a85988d292152cd758026d542dff16cc9c6020a6.tar.xz |
[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>
-rw-r--r-- | fetch.c | 2 |
1 files changed, 0 insertions, 2 deletions
@@ -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) |