Skip to content

Commit

Permalink
Rename convert_branches_to_sub_routes to convert_gl_branches_to_sub_r…
Browse files Browse the repository at this point in the history
…outes
  • Loading branch information
joshlarson committed Jan 15, 2025
1 parent dbe7b21 commit 9e706d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/dotcom/system_status/groups.ex
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,12 @@ defmodule Dotcom.SystemStatus.Groups do
green_line_entries
|> Enum.group_by(& &1.statuses)
|> Enum.to_list()
|> convert_branches_to_sub_routes()
|> convert_gl_branches_to_sub_routes()

other_entries ++ consolidated_green_line_entries
end

defp convert_branches_to_sub_routes([{statuses, _}]) do
defp convert_gl_branches_to_sub_routes([{statuses, _}]) do
[
%{
route_id: "Green",
Expand All @@ -158,7 +158,7 @@ defmodule Dotcom.SystemStatus.Groups do
]
end

defp convert_branches_to_sub_routes(entries) do
defp convert_gl_branches_to_sub_routes(entries) do
entries
|> Enum.map(fn {statuses, routes} ->
%{
Expand Down

0 comments on commit 9e706d9

Please sign in to comment.