cleanup the retrun style for cp execute function

Signed-off-by: calvin <wen.chen@daocloud.io>
This commit is contained in:
calvin 2023-10-07 19:05:50 +08:00
parent 0554675d78
commit 6e0ece85c4

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()
}