Skip to content

Commit

Permalink
builtin-tag.c: remove cruft
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Gerrit Pape authored and Junio C Hamano committed Feb 22, 2008
1 parent c7fae5f commit fd74cb0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions builtin-tag.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit fd74cb0

Please sign in to comment.