Skip to content

Commit

Permalink
Run mix format to pass CI check.
Browse files Browse the repository at this point in the history
  • Loading branch information
kgautreaux committed Sep 17, 2023
1 parent 7639780 commit f164f06
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
19 changes: 12 additions & 7 deletions lib/beacon/live_admin/page_live.ex
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,19 @@ defmodule Beacon.LiveAdmin.PageLive do
Cluster.maybe_discover_sites()

sites = Beacon.LiveAdmin.Cluster.running_sites()

%{"pages" => pages, "beacon_live_admin_page_url" => current_url} =
try do
%{"pages" => _pages, "beacon_live_admin_page_url" => _current_url} = session
rescue
e in [MatchError] ->
Logger.warning("You must add Beacon.LiveAdmin.Plug to your :browser pipeline that beacon_live_admin is piped through.")
reraise e, __STACKTRACE__
end
try do
%{"pages" => _pages, "beacon_live_admin_page_url" => _current_url} = session
rescue
e in [MatchError] ->
Logger.warning(
"You must add Beacon.LiveAdmin.Plug to your :browser pipeline that beacon_live_admin is piped through."
)

reraise e, __STACKTRACE__
end

page = lookup_page!(socket, current_url)

socket =
Expand Down
1 change: 0 additions & 1 deletion test/test_helper.exs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ defmodule Beacon.LiveAdminTest.Router do
end
end


defmodule Beacon.LiveAdminTest.Endpoint do
use Phoenix.Endpoint, otp_app: :beacon_live_admin

Expand Down

0 comments on commit f164f06

Please sign in to comment.