Skip to content

Commit

Permalink
Merge pull request naymspace#513 from nedhgx/develop
Browse files Browse the repository at this point in the history
Fixed warning run in erlang 27.0.1 & elixir 1.17.2-otp-27
  • Loading branch information
Flo0807 authored Aug 8, 2024
2 parents 714ff7a + 63db313 commit 12051ef
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/backpex/html/resource.ex
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ defmodule Backpex.HTML.Resource do

defp cookie_path(socket) do
%{path: path} =
Enum.find(Map.get(socket, :router).__routes__, fn element ->
Enum.find(Map.get(socket, :router).__routes__(), fn element ->
element[:plug] == Backpex.CookieController and element[:plug_opts] == :update
end)

Expand Down
2 changes: 1 addition & 1 deletion lib/backpex/router.ex
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ defmodule Backpex.Router do

defp get_route_path(socket, module, action) do
%{path: path} =
Enum.find(Map.get(socket, :router).__routes__, fn element ->
Enum.find(Map.get(socket, :router).__routes__(), fn element ->
element[:metadata][:log_module] == module and element[:plug_opts] == action
end)

Expand Down

0 comments on commit 12051ef

Please sign in to comment.