Address review comments

This commit is contained in:
Alexander Neumann
2021-01-30 20:02:37 +01:00
parent 200f09522d
commit aef3658a5f
3 changed files with 6 additions and 7 deletions
+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
}