mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 02:34:03 +00:00
Merge pull request #121043 from calvin0327/cleanup-return
cli: cleanup the retrun style for cp execute function
This commit is contained in:
commit
d187ea3d03
@ -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()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user