Skip to content

Commit

Permalink
remove redundant is_list/1 guard
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustavo Aguiar committed Nov 9, 2023
1 parent 71e8220 commit d9894fe
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/elixir_sense/plugins/phoenix/scope.ex
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,7 @@ defmodule ElixirSense.Plugins.Phoenix.Scope do
do: module

# scope path: "/", alias: ExampleWeb do ... end
defp get_scope_alias([{:scope, _, [scope_params]}], binding_env, module)
when is_list(scope_params) do
defp get_scope_alias([{:scope, _, [scope_params]}], binding_env, module) do
scope_alias = Keyword.get(scope_params, :alias)
scope_alias = get_mod(scope_alias, binding_env)
safe_concat(module, scope_alias)
Expand Down

0 comments on commit d9894fe

Please sign in to comment.