misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
Simone Margaritelli 2021-03-30 11:59:13 +02:00
parent 0d17ba3573
commit c68c88030d
No known key found for this signature in database
GPG key ID: 82E42E7F3B34C97E

View file

@ -145,5 +145,5 @@ func GetSupportedFrequencies(iface string) ([]int, error) {
} else if core.HasBinary("iwlist") {
return iwlistSupportedFrequencies(iface)
}
return fmt.Errorf("no iw or iwlist binaries found in $PATH")
return nil, fmt.Errorf("no iw or iwlist binaries found in $PATH")
}