Skip to content

Commit

Permalink
Fixes template dest bug for close io
Browse files Browse the repository at this point in the history
  • Loading branch information
tlm committed Nov 27, 2018
1 parent cbb0e8a commit 55778ee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dest/template_file_dest.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@ func (t *fileWrapper) Close() error {
}
err := t.ofile.Close()
if err != nil {
t.ofile = nil
return err
}
err = t.Dest.Chown()
t.ofile = nil
return err
}

Expand Down

0 comments on commit 55778ee

Please sign in to comment.