Skip to content

Commit

Permalink
Merge pull request #4117 from crazy-max/fix-filesync
Browse files Browse the repository at this point in the history
filesync: write closer err discarded
  • Loading branch information
tonistiigi authored Aug 8, 2023
2 parents 13bd88e + 5b8f962 commit 397f69e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion session/filesync/filesync.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ func (sp *fsSyncTarget) DiffCopy(stream FileSend_DiffCopyServer) (err error) {
}
defer func() {
err1 := wc.Close()
if err != nil {
if err == nil {
err = err1
}
}()
Expand Down

0 comments on commit 397f69e

Please sign in to comment.