Skip to content

Commit

Permalink
removed redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
Dorfeuheinz committed Aug 12, 2023
1 parent cc29632 commit f58a543
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/phoenix_live_view/router.ex
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ defmodule Phoenix.LiveView.Router do
expected a map with string keys or an MFA tuple, got #{inspect(bad_session)}
"""

{:root_layout, {mod, template}}, acc when is_atom(mod) and is_binary(template) ->
{:root_layout, {mod, template}}, _acc when is_atom(mod) and is_binary(template) ->
Phoenix.LiveView.Utils.normalize_layout(template, "live_session :root_layout")

{:root_layout, {mod, template}}, acc when is_atom(mod) and is_atom(template) ->
Expand All @@ -293,7 +293,7 @@ defmodule Phoenix.LiveView.Router do
expected a tuple with the view module and template atom name, got #{inspect(bad_layout)}
"""

{:layout, {mod, template}}, acc when is_atom(mod) and is_binary(template) ->
{:layout, {mod, template}}, _acc when is_atom(mod) and is_binary(template) ->
Phoenix.LiveView.Utils.normalize_layout(template, "live_session :layout")

{:layout, {mod, template}}, acc when is_atom(mod) and is_atom(template) ->
Expand Down

0 comments on commit f58a543

Please sign in to comment.