mirror of
https://github.com/restic/restic.git
synced 2026-10-11 20:47:12 +00:00
Address review comments
This commit is contained in:
1 parent
200f09522d
commit
aef3658a5f
3 files changed
+6
-7
No files matched your search
@@ -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