mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 10:46:57 -07:00
more lint driven refactoring
This commit is contained in:
parent
7919cda5ec
commit
0de6f3a76e
57 changed files with 168 additions and 241 deletions
|
@ -28,7 +28,7 @@ func (w *WiFiModule) channelHopper() {
|
|||
|
||||
log.Info("Channel hopper started.")
|
||||
|
||||
for w.Running() == true {
|
||||
for w.Running() {
|
||||
delay := w.hopPeriod
|
||||
// if we have both 2.4 and 5ghz capabilities, we have
|
||||
// more channels, therefore we need to increase the time
|
||||
|
@ -53,7 +53,7 @@ func (w *WiFiModule) channelHopper() {
|
|||
}
|
||||
|
||||
time.Sleep(delay)
|
||||
if w.Running() == false {
|
||||
if !w.Running() {
|
||||
return
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue