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:06 -04:00
commit c2db4b0d67

View file

@ -71,9 +71,8 @@ func (p *Prober) Configure() error {
var err error
if err, p.throttle = p.IntParam("net.probe.throttle"); err != nil {
return err
} else {
log.Debug("Throttling packets of %d ms.", p.throttle)
}
log.Debug("Throttling packets of %d ms.", p.throttle)
return nil
}