mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 21:13:18 -07:00
if block ends with a return statement drop this else and outdent its block
This commit is contained in:
parent
55614a7f28
commit
c2db4b0d67
1 changed files with 1 additions and 2 deletions
|
@ -71,9 +71,8 @@ func (p *Prober) Configure() error {
|
||||||
var err error
|
var err error
|
||||||
if err, p.throttle = p.IntParam("net.probe.throttle"); err != nil {
|
if err, p.throttle = p.IntParam("net.probe.throttle"); err != nil {
|
||||||
return err
|
return err
|
||||||
} else {
|
|
||||||
log.Debug("Throttling packets of %d ms.", p.throttle)
|
|
||||||
}
|
}
|
||||||
|
log.Debug("Throttling packets of %d ms.", p.throttle)
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue