Merge pull request #121043 from calvin0327/cleanup-return

cli: cleanup the retrun style for cp execute function
This commit is contained in:
Kubernetes Prow Robot 2023-12-13 21:26:00 +01:00 committed by GitHub
commit d187ea3d03
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -568,8 +568,5 @@ func (o *CopyOptions) execute(options *exec.ExecOptions) error {
return err
}
if err := options.Run(); err != nil {
return err
}
return nil
return options.Run()
}