Skip to content

Commit

Permalink
Change use of map to each in dashboard (#1550)
Browse files Browse the repository at this point in the history
  • Loading branch information
lawik authored Sep 25, 2024
1 parent 580bff0 commit f37b34b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nerves_hub_web/live/dashboard/index.ex
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ defmodule NervesHubWeb.Live.Dashboard.Index do

defp subscribe_to_devices(socket) do
if connected?(socket) do
Enum.map(socket.assigns.devices, fn device ->
Enum.each(socket.assigns.devices, fn device ->
socket.endpoint.subscribe("device:#{device.identifier}:internal")
end)

Expand Down

0 comments on commit f37b34b

Please sign in to comment.