提交 2449696b 编写于 作者: S Sergey Vlasov 提交者: Junio C Hamano

[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: NSergey Vlasov <vsu@altlinux.ru>
Signed-off-by: NJunio C Hamano <junkio@cox.net>
上级 7b64d06b
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册