Filter out nil

pull/507/head
connor rigby 2018-04-30 15:03:26 -07:00
parent 5b632ef750
commit 659c24836a
No known key found for this signature in database
GPG Key ID: 24DC438382965C3B
1 changed files with 1 additions and 1 deletions

View File

@ -30,10 +30,10 @@ defmodule Farmbot.Target.Network do
@doc "Scan on an interface. "
def do_scan(iface) do
Nerves.Network.scan(iface)
|> Enum.reject(&String.contains?(&1.ssid, "\\x00"))
|> ScanResult.decode()
|> ScanResult.sort_results()
|> ScanResult.decode_security()
|> Enum.reject(&String.contains?(&1.ssid, "\\x00"))
end
@doc "Tests if we can make dns queries."