_underscore unused variables

pull/1159/head
Rick Carlino 2020-02-19 17:34:11 -06:00
parent 2dc602c58c
commit 91a57ef5af
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@ defmodule FarmbotOS.Platform.Target.Configurator.VintageNetworkLayer do
VintageNet.get_by_prefix(["interface", interface_name, "mac_address"])
end)
|> Enum.filter(fn
[{["interface", ifname, "mac_address"], mac_addr}] -> true
[{["interface", _ifname, "mac_address"], _mac_addr}] -> true
# Sometimes VintageNet.get_by_prefix/1 will
# return [[]], leading to runtime errors.
_ -> false