mirror of
https://github.com/restic/restic.git
synced 2026-07-14 19:24:53 +00:00
Address review comments
This commit is contained in:
@@ -1760,10 +1760,13 @@ func copyFile(dst string, src string) error {
|
||||
// ignore subsequent errors
|
||||
_ = srcFile.Close()
|
||||
_ = dstFile.Close()
|
||||
return err
|
||||
}
|
||||
|
||||
err = srcFile.Close()
|
||||
if err != nil {
|
||||
// ignore subsequent errors
|
||||
_ = dstFile.Close()
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user