From fde0081d61d0abc889fb012de0f2a0fc4c7238d7 Mon Sep 17 00:00:00 2001 From: Leoswaldo Macias Date: Mon, 11 Jul 2016 19:08:17 -0500 Subject: [PATCH] ciao-launcher: remove unecessary asigment of chanel and return Removing unecessary asigment to chanel and also return, since after the if the asigment to the chanel dialCh still is valid and the return is not necessary cause the left asignment of dialCh is the last instruction and the anonymous function ends. Signed-off-by: Leoswaldo Macias --- ciao-launcher/main.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/ciao-launcher/main.go b/ciao-launcher/main.go index 2acf23d82..bc45e03d6 100644 --- a/ciao-launcher/main.go +++ b/ciao-launcher/main.go @@ -336,8 +336,6 @@ func connectToServer(doneCh chan struct{}, statusCh chan struct{}) { err := client.conn.Dial(cfg, client) if err != nil { glog.Errorf("Unable to connect to server %v", err) - dialCh <- err - return } dialCh <- err