more lint driven refactoring

This commit is contained in:
evilsocket 2018-04-24 18:26:16 +02:00
commit 0de6f3a76e
No known key found for this signature in database
GPG key ID: 1564D7F30393A456
57 changed files with 168 additions and 241 deletions

View file

@ -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
}
}