remove the second repeated line cli.api = api since api is a pointer
Signed-off-by: yuzou <zouyu7@huawei.com> Upstream-commit: cb31d03b58e51a8ff56a04e8e0b5e17693b03f78 Component: engine
This commit is contained in:
@@ -256,7 +256,6 @@ func (cli *DaemonCli) start() (err error) {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
cli.api = api
|
||||
signal.Trap(func() {
|
||||
cli.stop()
|
||||
<-stopc // wait for daemonCli.start() to return
|
||||
|
||||
Reference in New Issue
Block a user