]> 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:12:10 +0000 (17:12 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Wed, 1 Jun 2016 14:12:10 +0000 (17:12 +0300)
The caller already set success==FALSE if ostream was closed.

src/lib-fs/fs-metawrap.c

index e0185467773ddd7a010db44debd8ac9cf02f945d..adaf0018b87c011cf751195f2eb06abc3e644999 100644 (file)
@@ -383,8 +383,6 @@ static int fs_metawrap_write_stream_finish(struct fs_file *_file, bool success)
        int ret;
 
        if (_file->output != NULL) {
-               if (_file->output->closed)
-                       success = FALSE;
                if (_file->output == file->super_output)
                        _file->output = NULL;
                else