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 14, 2024
1 parent b61a5d0 commit 3cb2757
Show file tree
Hide file tree
Showing 3 changed files with 2 additions 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 @@ -134,8 +134,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
1 change: 1 addition & 0 deletions lib/dotcom_web/views/schedule/timetable.ex
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ defmodule DotcomWeb.ScheduleView.Timetable do
alias DotcomWeb.ViewHelpers, as: Helpers
alias DotcomWeb.PartialView.SvgIconWithCircle
alias Stops.Stop
alias Routes.Route

import Phoenix.HTML.Tag, only: [content_tag: 3]

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: [:unmatched_returns, :error_handling, :underspecs],
flags: [:unmatched_returns],
ignore_warnings: ".dialyzer.ignore-warnings"
],
deps: deps(),
Expand Down

0 comments on commit 3cb2757

Please sign in to comment.