From fd74cb0874126876227a958f6250323a4a4478a5 Mon Sep 17 00:00:00 2001 From: Gerrit Pape Date: Fri, 22 Feb 2008 09:53:09 +0000 Subject: [PATCH] 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 Signed-off-by: Junio C Hamano --- builtin-tag.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/builtin-tag.c b/builtin-tag.c index 4a4a88c10b..716b4fff32 100644 --- a/builtin-tag.c +++ b/builtin-tag.c @@ -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; } -- 2.11.4.GIT