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 <crazy-max@users.noreply.github.com>
(cherry picked from commit 5b8f962)
  • Loading branch information
crazy-max committed Aug 8, 2023
1 parent 6579892 commit 1c5387a
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 @@ -286,7 +286,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 1c5387a

Please sign in to comment.