builtin-tag.c: remove cruft
After changing builtin-tag.c to use strbuf in fd17f5b (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: Gerrit Pape <pape@smarden.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Gerrit Pape committed
Feb 22, 2008 at 09:53 UTC
fd74cb0874126876227a958f6250323a4a4478a5
1 file changed
-3
builtin-tag.c
-3
@@ -236,9 +236,6 @@ static int do_sign(struct strbuf *buffer)
236
if (finish_command(&gpg) || !len || len < 0)
237
return error("gpg failed to sign the tag");
238
239
- if (len < 0)
240
- return error("could not read the entire signature from gpg.");
241
-
239
return 0;
240
}
241