]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
fs-metawrap: Removed unnecessary code.
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 1 Jun 2016 14:18:23 +0000 (17:18 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Thu, 2 Jun 2016 12:47:04 +0000 (15:47 +0300)
As mentioned in a0cf7d392, this can't happen.

src/lib-fs/fs-metawrap.c

index 0691fd0e2b85178c01c7272f61d09c300828c6c9..c4887d75c256ef59611fc4ac52085dd68ca16ca6 100644 (file)
@@ -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;