Re-run gofmt -s after modifications

This commit is contained in:
Edznux 2018-10-23 06:35:22 +02:00
commit d80fef3ef9
11 changed files with 30 additions and 30 deletions

View file

@ -122,7 +122,7 @@ func (p *HTTPProxy) Configure(address string, proxyPort int, httpPort int, scrip
data, err := ioutil.ReadFile(jsToInject)
if err != nil {
return err
}
}
jsToInject = string(data)
}

View file

@ -273,7 +273,7 @@ func (s *SSLStripper) isMaxRedirs(hostname string) bool {
delete(s.redirs, hostname)
return true
}
// increment
// increment
s.redirs[hostname]++
} else {
// start tracking redirections

View file

@ -122,11 +122,11 @@ func (d *Discovery) Show(by string, expr string) (err error) {
}
switch by {
case "seen" :
case "seen":
sort.Sort(BySeenSorter(targets))
case "sent" :
case "sent":
sort.Sort(BySentSorter(targets))
case "rcvd" :
case "rcvd":
sort.Sort(ByRcvdSorter(targets))
default:
sort.Sort(ByAddressSorter(targets))

View file

@ -84,7 +84,7 @@ func (w *WiFiModule) getRow(station *network.Station) ([]string, bool) {
recvd,
seen,
}, include
}
}
// this is ugly, but necessary in order to have this
// method handle both access point and clients
// transparently