Skip to content

Commit

Permalink
Fix Dialyzer warning
Browse files Browse the repository at this point in the history
  • Loading branch information
fhunleth committed May 9, 2019
1 parent 65e4e81 commit f01bdd7
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/vintage_net.ex
Original file line number Diff line number Diff line change
Expand Up @@ -178,16 +178,14 @@ defmodule VintageNet do
if ifnames == [] do
IO.puts("\nNo configured interfaces")
else
for ifname <- configured_interfaces() do
Enum.each(ifnames, fn ifname ->
IO.puts("\nInterface #{ifname}")
print_if_attribute(ifname, "type", "Type")
print_if_attribute(ifname, "present", "Present")
print_if_attribute(ifname, "state", "State")
print_if_attribute(ifname, "connection", "Connection")
end
end)
end

:ok
end

defp print_if_attribute(ifname, name, print_name) do
Expand Down

0 comments on commit f01bdd7

Please sign in to comment.