]> 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>
Wed, 1 Jun 2016 14:18:23 +0000 (17:18 +0300)
As mentioned in a0cf7d392, this can't happen.

src/lib-fs/fs-metawrap.c

index adaf0018b87c011cf751195f2eb06abc3e644999..29f147879e3604b5c09da9b194540f5aad94ff81 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;