Skip to content

Commit

Permalink
fix(file): dont forget to close writer
Browse files Browse the repository at this point in the history
  • Loading branch information
enisdenjo committed Nov 24, 2023
1 parent 4d9b59e commit ca0b064
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/file/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ func Write(ctx context.Context, id uu.ID, file fs.FileReader) (fsfile fs.File, e
if err != nil {
return "", err
}
defer w.Close()

_, err = file.WriteTo(w)
if err != nil {
Expand Down

0 comments on commit ca0b064

Please sign in to comment.