notmuch-reply: Remove a useless level of nesting.
authorCarl Worth <cworth@cworth.org>
Wed, 7 Apr 2010 01:50:22 +0000 (18:50 -0700)
committerCarl Worth <cworth@cworth.org>
Wed, 7 Apr 2010 01:51:57 +0000 (18:51 -0700)
Making the code a tiny bit easier to read (in my opinion at least).

notmuch-reply.c

index 7a4fab707d877df31d80311c07b6fadae2136e39..3798d60ed118c080e436afd6e1508270f7aa063b 100644 (file)
@@ -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),