From: Timo Sirainen Date: Wed, 1 Jun 2016 14:18:23 +0000 (+0300) Subject: fs-metawrap: Removed unnecessary code. X-Git-Tag: 2.2.25.rc1~229 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3ffc655f0a4f8db2315c3de3553156f8bf99db75;p=thirdparty%2Fdovecot%2Fcore.git fs-metawrap: Removed unnecessary code. As mentioned in a0cf7d392, this can't happen. --- diff --git a/src/lib-fs/fs-metawrap.c b/src/lib-fs/fs-metawrap.c index 0691fd0e2b..c4887d75c2 100644 --- a/src/lib-fs/fs-metawrap.c +++ b/src/lib-fs/fs-metawrap.c @@ -393,11 +393,8 @@ static int fs_metawrap_write_stream_finish(struct fs_file *_file, bool success) /* no metawrap */ i_assert(file->temp_output == NULL); fs_write_stream_abort(file->super, &file->super_output); - } else if (file->temp_output == NULL) { - /* finishing up */ - i_assert(file->super_output == NULL); - fs_write_stream_abort(file->super, &file->super_output); } else { + i_assert(file->temp_output != NULL); o_stream_destroy(&file->temp_output); } return -1;