Skip to content

Commit 397f69e

Browse files
authored
Merge pull request moby#4117 from crazy-max/fix-filesync
filesync: write closer err discarded
2 parents 13bd88e + 5b8f962 commit 397f69e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

session/filesync/filesync.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ func (sp *fsSyncTarget) DiffCopy(stream FileSend_DiffCopyServer) (err error) {
277277
}
278278
defer func() {
279279
err1 := wc.Close()
280-
if err != nil {
280+
if err == nil {
281281
err = err1
282282
}
283283
}()

0 commit comments

Comments
 (0)