Skip to content

Commit 6c597ae

Browse files
peffgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 50d0158 commit 6c597ae

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

imap-send.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1213,10 +1213,6 @@ static struct store *imap_open_store(struct imap_server_conf *srvc)
12131213
strbuf_addf(&prompt, "Password (%s@%s): ", srvc->user, srvc->host);
12141214
arg = git_getpass(prompt.buf);
12151215
strbuf_release(&prompt);
1216-
if (!arg) {
1217-
perror("getpass");
1218-
exit(1);
1219-
}
12201216
if (!*arg) {
12211217
fprintf(stderr, "Skipping account %s@%s, no password\n", srvc->user, srvc->host);
12221218
goto bail;

0 commit comments

Comments
 (0)