mirror of
https://github.com/bettercap/bettercap
synced 2025-08-21 14:03:17 -07:00
more lint driven refactoring
This commit is contained in:
parent
7919cda5ec
commit
0de6f3a76e
57 changed files with 168 additions and 241 deletions
|
@ -31,11 +31,10 @@ func (s *SnifferStats) Print() error {
|
|||
first := "never"
|
||||
last := "never"
|
||||
|
||||
if s.FirstPacket.IsZero() == false {
|
||||
if !s.FirstPacket.IsZero() {
|
||||
first = s.FirstPacket.String()
|
||||
}
|
||||
|
||||
if s.LastPacket.IsZero() == false {
|
||||
if !s.LastPacket.IsZero() {
|
||||
last = s.LastPacket.String()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue