mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 21:43:18 -07:00
if block ends with a return statement drop this else and outdent its block
This commit is contained in:
parent
9505a149ce
commit
3f8226ff67
1 changed files with 1 additions and 2 deletions
|
@ -210,9 +210,8 @@ func (s *EventsStream) startWaitingFor(tag string, timeout int) error {
|
|||
|
||||
if event == nil {
|
||||
return fmt.Errorf("'events.waitFor %s %d' timed out.", tag, timeout)
|
||||
} else {
|
||||
log.Debug("Got event: %v", event)
|
||||
}
|
||||
log.Debug("Got event: %v", event)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue