From: Josef 'Jeff' Sipek Date: Thu, 6 Sep 2018 15:07:22 +0000 (-0400) Subject: lib-storage: Simplify an assertion condition X-Git-Tag: 2.3.9~1417 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=23111cdc115d6f3d2544af520d8172daad1c14e4;p=thirdparty%2Fdovecot%2Fcore.git lib-storage: Simplify an assertion condition Since the i_assert() is guarded by a check for save_bodystructure_header being true, the whole condition can be simplified. --- diff --git a/src/lib-storage/index/index-mail-headers.c b/src/lib-storage/index/index-mail-headers.c index 0fb66a0c44..ce048230e6 100644 --- a/src/lib-storage/index/index-mail-headers.c +++ b/src/lib-storage/index/index-mail-headers.c @@ -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;