Skip to content

Commit 5b8f962

Browse files
committed
filesync: write closer err discarded
Signed-off-by: CrazyMax <[email protected]>
1 parent 659fba6 commit 5b8f962

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)