From 9a2fa29046d91d772cadcb86e9637aaa2f6e9b9d Mon Sep 17 00:00:00 2001 From: Juan Leni Date: Wed, 3 Apr 2019 19:05:22 +0200 Subject: [PATCH] removed superfluous brackets --- privval/signer_listener_endpoint.go | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/privval/signer_listener_endpoint.go b/privval/signer_listener_endpoint.go index 92464fa72..f6817f4b6 100644 --- a/privval/signer_listener_endpoint.go +++ b/privval/signer_listener_endpoint.go @@ -265,6 +265,7 @@ func (sl *SignerListenerEndpoint) serviceLoop() { case <-sl.connectCh: { sl.Logger.Info("Listening for new connection") + conn, err := sl.acceptNewConnection() if err == nil { sl.Logger.Info("Connected") @@ -272,14 +273,11 @@ func (sl *SignerListenerEndpoint) serviceLoop() { // We have a good connection, wait for someone that needs one or cancellation select { case sl.connectedCh <- conn: - { - sl.Logger.Debug("SignerListenerEndpoint: connection relayed") - } + sl.Logger.Debug("SignerListenerEndpoint: connection relayed") + break case <-sl.stopCh: - { - sl.Logger.Debug("SignerListenerEndpoint::serviceLoop Stop") - return - } + sl.Logger.Debug("SignerListenerEndpoint::serviceLoop Stop") + return } } @@ -289,10 +287,8 @@ func (sl *SignerListenerEndpoint) serviceLoop() { } } case <-sl.stopCh: - { - sl.Logger.Debug("SignerListenerEndpoint::serviceLoop Stop") - return - } + sl.Logger.Debug("SignerListenerEndpoint::serviceLoop Stop") + return } } }