mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
Merge pull request #92140 from ash2k/ash2k/fix-error-check
Fix error check logic in test
This commit is contained in:
commit
dbaaed3592
@ -171,7 +171,7 @@ func copyFile(src, dst string) (err error) {
|
||||
}
|
||||
defer func() {
|
||||
cerr := out.Close()
|
||||
if cerr == nil {
|
||||
if err == nil {
|
||||
err = cerr
|
||||
}
|
||||
}()
|
||||
|
Loading…
Reference in New Issue
Block a user