Skip to content

Commit

Permalink
filesync: write closer err discarded
Browse files Browse the repository at this point in the history
Signed-off-by: CrazyMax <[email protected]>
  • Loading branch information
crazy-max committed Aug 8, 2023
1 parent 659fba6 commit 5b8f962
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 5b8f962

Please sign in to comment.