mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-07 11:13:48 +00:00
cleanup the retrun style for cp execute function
Signed-off-by: calvin <wen.chen@daocloud.io>
This commit is contained in:
parent
0554675d78
commit
6e0ece85c4
@ -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