Skip to content

Commit

Permalink
lib-fs: Minor code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen committed May 12, 2016
1 parent eaac258 commit 526af69
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/lib-fs/fs-api.c
Expand Up @@ -678,9 +678,8 @@ int fs_write_stream_finish(struct fs_file *file, struct ostream **output)
i_assert(*output == file->output || *output == NULL);

*output = NULL;
if (file->output != NULL)
o_stream_uncork(file->output);
if (file->output != NULL) {
o_stream_uncork(file->output);
if (o_stream_nfinish(file->output) < 0) {
fs_set_error(file->fs, "write(%s) failed: %s",
o_stream_get_name(file->output),
Expand Down

0 comments on commit 526af69

Please sign in to comment.