if block ends with a return statement drop this else and outdent its block

This commit is contained in:
Kent Gruber 2018-05-01 23:22:10 -04:00
commit 5619127f93

View file

@ -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() {