lib/model: Remove double error handling in performFinish (#6780)

This commit is contained in:
Simon Frei 2020-06-23 07:30:16 +02:00 committed by GitHub
parent 4881a6336f
commit 85794933d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1518,8 +1518,6 @@ func (f *sendReceiveFolder) performFinish(file, curFile protocol.FileInfo, hasCu
// handle that. // handle that.
if err := f.scanIfItemChanged(file.Name, stat, curFile, hasCurFile, scanChan); err != nil { if err := f.scanIfItemChanged(file.Name, stat, curFile, hasCurFile, scanChan); err != nil {
err = errors.Wrap(err, "handling file")
f.newPullError(file.Name, err)
return err return err
} }