Skip to content

Commit fd74cb0

Browse files
g-papegitster
authored andcommitted
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>
1 parent c7fae5f commit fd74cb0

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

builtin-tag.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,6 @@ static int do_sign(struct strbuf *buffer)
236236
if (finish_command(&gpg) || !len || len < 0)
237237
return error("gpg failed to sign the tag");
238238

239-
if (len < 0)
240-
return error("could not read the entire signature from gpg.");
241-
242239
return 0;
243240
}
244241

0 commit comments

Comments
 (0)