Browse code

Merge pull request #24663 from hopkings2008/repeated_api

remove the second repeated line cli.api = api since api is a pointer

Alexander Morozov authored on 2016/07/29 08:45:30
Showing 1 changed files
... ...
@@ -256,7 +256,6 @@ func (cli *DaemonCli) start() (err error) {
256 256
 	if err != nil {
257 257
 		return err
258 258
 	}
259
-	cli.api = api
260 259
 	signal.Trap(func() {
261 260
 		cli.stop()
262 261
 		<-stopc // wait for daemonCli.start() to return