From 3cb2757a6551c972699af62a68826b48c7c96ec7 Mon Sep 17 00:00:00 2001 From: Cristen Jones Date: Tue, 30 Apr 2024 22:25:13 -0400 Subject: [PATCH] fix dialyzer errors --- lib/dotcom_web/controllers/schedule/timetable_controller.ex | 2 -- lib/dotcom_web/views/schedule/timetable.ex | 1 + mix.exs | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/dotcom_web/controllers/schedule/timetable_controller.ex b/lib/dotcom_web/controllers/schedule/timetable_controller.ex index d9d86d1b15..0f666d33be 100644 --- a/lib/dotcom_web/controllers/schedule/timetable_controller.ex +++ b/lib/dotcom_web/controllers/schedule/timetable_controller.ex @@ -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, _} -> diff --git a/lib/dotcom_web/views/schedule/timetable.ex b/lib/dotcom_web/views/schedule/timetable.ex index 0a91ca67d1..8a70abaf8c 100644 --- a/lib/dotcom_web/views/schedule/timetable.ex +++ b/lib/dotcom_web/views/schedule/timetable.ex @@ -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] diff --git a/mix.exs b/mix.exs index 39fe6a6767..0af5a89605 100644 --- a/mix.exs +++ b/mix.exs @@ -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(),