Address review comments

This commit is contained in:
Alexander Neumann committed 2021-01-30 20:02:37 +01:00
1 parent 200f09522d
commit aef3658a5f
3 files changed
+6 -7

No files matched your search

+3
View File
@@ -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
}