imap-send: don't check return value of git_getpass
git_getpass will always die() if we weren't able to get input, so there's no point looking for NULL. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jeff King committed
Dec 10, 2011 at 05:40 UTC
6c597aeba1e0fc369e64b1033515b0e39544cbe1
1 file changed
-4
imap-send.c
-4
@@ -1213,10 +1213,6 @@ static struct store *imap_open_store(struct imap_server_conf *srvc)
1213
strbuf_addf(&prompt, "Password (%s@%s): ", srvc->user, srvc->host);
1214
arg = git_getpass(prompt.buf);
1215
strbuf_release(&prompt);
1216
- if (!arg) {
1217
- perror("getpass");
1218
- exit(1);
1219
- }
1216
if (!*arg) {
1217
fprintf(stderr, "Skipping account %s@%s, no password\n", srvc->user, srvc->host);
1218
goto bail;