From 5619127f93594c6d4bffddae603935c5facb883b Mon Sep 17 00:00:00 2001 From: Kent Gruber Date: Tue, 1 May 2018 23:22:10 -0400 Subject: [PATCH] if block ends with a return statement drop this else and outdent its block --- modules/tcp_proxy.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/tcp_proxy.go b/modules/tcp_proxy.go index d3be611a..18f2b664 100644 --- a/modules/tcp_proxy.go +++ b/modules/tcp_proxy.go @@ -124,9 +124,8 @@ func (p *TcpProxy) Configure() error { if scriptPath != "" { if err, p.script = LoadTcpProxyScript(scriptPath, p.Session); err != nil { return err - } else { - log.Debug("TCP proxy script %s loaded.", scriptPath) } + log.Debug("TCP proxy script %s loaded.", scriptPath) } if !p.Session.Firewall.IsForwardingEnabled() {