mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 05:23:19 -07:00
if block ends with a return statement drop this else and outdent its block
This commit is contained in:
parent
c2db4b0d67
commit
5619127f93
1 changed files with 1 additions and 2 deletions
|
@ -124,9 +124,8 @@ func (p *TcpProxy) Configure() error {
|
||||||
if scriptPath != "" {
|
if scriptPath != "" {
|
||||||
if err, p.script = LoadTcpProxyScript(scriptPath, p.Session); err != nil {
|
if err, p.script = LoadTcpProxyScript(scriptPath, p.Session); err != nil {
|
||||||
return err
|
return err
|
||||||
} else {
|
|
||||||
log.Debug("TCP proxy script %s loaded.", scriptPath)
|
|
||||||
}
|
}
|
||||||
|
log.Debug("TCP proxy script %s loaded.", scriptPath)
|
||||||
}
|
}
|
||||||
|
|
||||||
if !p.Session.Firewall.IsForwardingEnabled() {
|
if !p.Session.Firewall.IsForwardingEnabled() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue