From 17a784aa092fe2ccb6463e4e4d5e0ff5279b4efa Mon Sep 17 00:00:00 2001 From: Jessica Frazelle Date: Tue, 10 Mar 2015 12:18:43 -0700 Subject: [PATCH] cleanup defer func Docker-DCO-1.1-Signed-off-by: Jessie Frazelle (github: jfrazelle) --- docker/daemon.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/docker/daemon.go b/docker/daemon.go index 38f808a124..74901d09d9 100644 --- a/docker/daemon.go +++ b/docker/daemon.go @@ -103,9 +103,8 @@ func mainDaemon() { // is booting daemonWait := make(chan struct{}) go func() { - defer func() { - close(daemonWait) - }() + defer close(daemonWait) + d, err := daemon.NewDaemon(daemonCfg, eng) if err != nil { log.Error(err)