]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: Simplify an assertion condition
authorJosef 'Jeff' Sipek <jeff.sipek@dovecot.fi>
Thu, 6 Sep 2018 15:07:22 +0000 (11:07 -0400)
committerJosef 'Jeff' Sipek <jeff.sipek@dovecot.fi>
Thu, 6 Sep 2018 15:07:22 +0000 (11:07 -0400)
Since the i_assert() is guarded by a check for save_bodystructure_header
being true, the whole condition can be simplified.

src/lib-storage/index/index-mail-headers.c

index 0fb66a0c4458f8637e96456ee1774cb30e18c43c..ce048230e691143c19736f6e0c5c6c24a4a49972 100644 (file)
@@ -312,8 +312,7 @@ void index_mail_parse_header(struct message_part *part,
                        index_mail_parse_header_finish(mail);
                } T_END;
                if (data->save_bodystructure_header) {
-                       i_assert(!data->save_bodystructure_body ||
-                                data->parser_ctx != NULL);
+                       i_assert(data->parser_ctx != NULL);
                        data->parsed_bodystructure_header = TRUE;
                }
                return;