提交 fd74cb08 编写于 作者: G Gerrit Pape 提交者: Junio C Hamano

builtin-tag.c: remove cruft

After changing builtin-tag.c to use strbuf in fd17f5b5 (Replace all
read_fd use with strbuf_read, and get rid of it.), the last condition
in do_sign() will always be false, as it's checked already right
above.  So let's remove the cruft.
Signed-off-by: NGerrit Pape <pape@smarden.org>
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 c7fae5fc
......@@ -236,9 +236,6 @@ static int do_sign(struct strbuf *buffer)
if (finish_command(&gpg) || !len || len < 0)
return error("gpg failed to sign the tag");
if (len < 0)
return error("could not read the entire signature from gpg.");
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册