mirror of
https://github.com/bettercap/bettercap
synced 2025-08-20 21:43:18 -07:00
Refactor if/else and switch for the modules package
This commit is contained in:
parent
ed6d40f163
commit
191e8eacff
34 changed files with 326 additions and 199 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue