Skip to content

Commit

Permalink
Removed function injection from green
Browse files Browse the repository at this point in the history
  • Loading branch information
kotva006 committed May 9, 2024
1 parent c7156f6 commit 8b60f94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dotcom_web/controllers/schedule/green.ex
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ defmodule DotcomWeb.ScheduleController.Green do
def predictions(conn, opts) do
{predictions, vehicle_predictions} =
if DotcomWeb.ScheduleController.Predictions.should_fetch_predictions?(conn) do
predictions_fn = opts[:predictions_fn] || Function.capture(@predictions_repo, :all, 1)
predictions_fn = Function.capture(@predictions_repo, :all, 1)

predictions_stream =
conn
Expand Down

0 comments on commit 8b60f94

Please sign in to comment.