Skip to content

Commit

Permalink
fix default scope
Browse files Browse the repository at this point in the history
  • Loading branch information
SteffenDE committed Feb 20, 2025
1 parent 43172f6 commit b5e02d9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/mix/phoenix/scope.ex
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ defmodule Mix.Phoenix.Scope do
Returns the default scope.
"""
def default_scope do
Enum.find(scopes_from_config(), fn {_, scope} -> scope.default end)
with {_, scope} <- Enum.find(scopes_from_config(), fn {_, scope} -> scope.default end) do
scope
end
end

@doc """
Expand Down

0 comments on commit b5e02d9

Please sign in to comment.