Skip to content

Commit

Permalink
better name for func
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyshull committed May 1, 2024
1 parent 6eaa4f6 commit 30fa56a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/dotcom_web/controllers/schedule/line_api.ex
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ defmodule DotcomWeb.ScheduleController.LineApi do
tooltips_by_stop =
tooltips
|> Map.values()
|> Enum.group_by(&group_tooltips/1)
|> Enum.group_by(&group_tooltips_by_stop/1)

combined_data_by_stop =
Map.keys(headsigns_by_stop)
Expand All @@ -125,7 +125,7 @@ defmodule DotcomWeb.ScheduleController.LineApi do
Jason.encode!(combined_data_by_stop)
end

defp group_tooltips(tooltip) do
defp group_tooltips_by_stop(tooltip) do
case Stops.Repo.get_parent(tooltip.vehicle.stop_id) do
%Stop{id: id} -> id
_ -> nil
Expand Down

0 comments on commit 30fa56a

Please sign in to comment.