Skip to content

Commit

Permalink
fs-metawrap: Minor code cleanup
Browse files Browse the repository at this point in the history
temp_output==NULL, so these calls are equal.
  • Loading branch information
sirainen committed May 12, 2016
1 parent 69ced82 commit 4c4a583
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib-fs/fs-metawrap.c
Expand Up @@ -416,7 +416,7 @@ static int fs_metawrap_write_stream_finish(struct fs_file *_file, bool success)
if (file->temp_output == NULL) {
/* finishing up */
i_assert(file->super_output == NULL);
return fs_write_stream_finish(file->super, &file->temp_output);
return fs_write_stream_finish_async(file->super);
}
/* finish writing the temporary file */
input = iostream_temp_finish(&file->temp_output, IO_BLOCK_SIZE);
Expand Down

0 comments on commit 4c4a583

Please sign in to comment.