diff options
author | Carl Worth <cworth@cworth.org> | 2010-04-06 18:50:22 -0700 |
---|---|---|
committer | Carl Worth <cworth@cworth.org> | 2010-04-06 18:51:57 -0700 |
commit | 542e32876ebae630d7a281be938296950689cb50 (patch) | |
tree | c5322a83a26fccad57bf05ffca511da924406e3b /notmuch-reply.c | |
parent | 3e216ba60d7e933a9b954aac5eaf0f5286819496 (diff) |
notmuch-reply: Remove a useless level of nesting.
Making the code a tiny bit easier to read (in my opinion at least).
Diffstat (limited to 'notmuch-reply.c')
-rw-r--r-- | notmuch-reply.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/notmuch-reply.c b/notmuch-reply.c index 7a4fab7..3798d60 100644 --- a/notmuch-reply.c +++ b/notmuch-reply.c @@ -380,12 +380,11 @@ notmuch_reply_format_default(void *ctx, notmuch_config_t *config, notmuch_query_ from_addr = add_recipients_from_message (reply, config, message); - if (from_addr == NULL) { + if (from_addr == NULL) from_addr = guess_from_received_header (config, message); - if (from_addr == NULL) { - from_addr = notmuch_config_get_user_primary_email (config); - } - } + + if (from_addr == NULL) { + from_addr = notmuch_config_get_user_primary_email (config); from_addr = talloc_asprintf (ctx, "%s <%s>", notmuch_config_get_user_name (config), |