Skip to content

Commit

Permalink
Do not redefine expand_alias
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Jun 20, 2023
1 parent a6494c5 commit 5de85a8
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions lib/phoenix_live_view/router.ex
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,6 @@ defmodule Phoenix.LiveView.Router do
end
end

defp expand_alias({:__aliases__, _, _} = alias, env),
do: Macro.expand(alias, %{env | function: {:__attr__, 3}})

defp expand_alias(other, _env), do: other

@doc """
Defines a live session for live redirects within a group of live routes.
Expand Down

0 comments on commit 5de85a8

Please sign in to comment.