mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
if block ends with a return statement drop this else and outdent its block
This commit is contained in:
parent
c6bbbca93f
commit
6a69369491
1 changed files with 1 additions and 2 deletions
|
@ -217,9 +217,8 @@ func (q *Queue) Send(raw []byte) error {
|
|||
if err := q.handle.WritePacketData(raw); err != nil {
|
||||
q.TrackError()
|
||||
return err
|
||||
} else {
|
||||
q.TrackSent(uint64(len(raw)))
|
||||
}
|
||||
q.TrackSent(uint64(len(raw)))
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue