Skip to content

Commit

Permalink
fix dialyzer errors
Browse files Browse the repository at this point in the history
  • Loading branch information
thecristen committed May 1, 2024
1 parent 2aaec3e commit 6dc3df8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions lib/dotcom_web/controllers/schedule/timetable_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,6 @@ defmodule DotcomWeb.ScheduleController.TimetableController do

# Helper function for obtaining schedule data
@spec timetable_schedules(Plug.Conn.t()) :: [Schedules.Schedule.t()]
defp timetable_schedules(%{assigns: %{date_in_rating?: false}}), do: []

defp timetable_schedules(%{assigns: %{date: date, route: route, direction_id: direction_id}}) do
case Schedules.Repo.by_route_ids([route.id], date: date, direction_id: direction_id) do
{:error, _} ->
Expand Down
2 changes: 1 addition & 1 deletion mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ defmodule DotCom.Mixfile do
],
dialyzer: [
plt_add_apps: [:mix, :phoenix_live_reload, :ex_aws, :ex_aws_ses],
flags: [:race_conditions, :unmatched_returns],
flags: [:unmatched_returns],
ignore_warnings: ".dialyzer.ignore-warnings"
],
deps: deps(),
Expand Down

0 comments on commit 6dc3df8

Please sign in to comment.