Refactor if/else and switch for the modules package

This commit is contained in:
Edznux 2018-10-23 06:09:10 +02:00
commit 191e8eacff
34 changed files with 326 additions and 199 deletions

View file

@ -19,11 +19,10 @@ func cleanESSID(essid string) string {
res := ""
for _, c := range essid {
if strconv.IsPrint(c) {
res += string(c)
} else {
if !strconv.IsPrint(c) {
break
}
res += string(c)
}
return res
}