Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
panentheos committed Nov 12, 2024
1 parent 78e827a commit f1ffd92
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions lib/content/audio/no_service.ex
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,14 @@ defmodule Content.Audio.NoService do
shuttle = if(use_shuttle?, do: " Use shuttle.", else: "")

cond do
destination ->
{:ok, destination_text} = PaEss.Utilities.destination_to_ad_hoc_string(destination)
"No #{destination_text} service.#{shuttle}"

use_routes? ->
# Hardcoded for Union Square
"No Train Service. Use routes 86, 87, or 91"

destination ->
{:ok, destination_text} = PaEss.Utilities.destination_to_ad_hoc_string(destination)
"No #{destination_text} service.#{shuttle}"

true ->
line = if(route, do: "#{route} Line", else: "train")
"There is no #{line} service at this station.#{shuttle}"
Expand Down
2 changes: 1 addition & 1 deletion test/content/audio/vehicles_to_destination_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ defmodule Content.Audio.VehiclesToDestinationTest do
end
end

test "from_messags/2" do
test "from_messages/2" do
assert [
%Content.Audio.VehiclesToDestination{
destination: :lechmere,
Expand Down

0 comments on commit f1ffd92

Please sign in to comment.