Skip to content

Commit

Permalink
Remove not used code (#6064)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszsamson authored Jan 26, 2025
1 parent 05a6299 commit 1934500
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions lib/phoenix/router/route.ex
Original file line number Diff line number Diff line change
Expand Up @@ -177,15 +177,9 @@ defmodule Phoenix.Router.Route do
match_all = match_params ++ match_private ++ match_assigns
merge_all = merge_params ++ merge_private ++ merge_assigns

if merge_all != [] do
quote do
%{unquote_splicing(match_all)} = var!(conn, :conn)
%{var!(conn, :conn) | unquote_splicing(merge_all)}
end
else
quote do
var!(conn, :conn)
end
quote do
%{unquote_splicing(match_all)} = var!(conn, :conn)
%{var!(conn, :conn) | unquote_splicing(merge_all)}
end
end

Expand Down

0 comments on commit 1934500

Please sign in to comment.