Skip to content

Commit

Permalink
use the variable
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszsamson committed Feb 11, 2024
1 parent e1478eb commit 4b84d06
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
17 changes: 8 additions & 9 deletions lib/elixir_sense/core/applications.ex
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,15 @@ defmodule ElixirSense.Core.Applications do

def get_application(module) do
Enum.find_value(:application.loaded_applications(), fn {app, _, _} ->
modules =
case :application.get_key(app, :modules) do
{:ok, modules} ->
if module in modules do
app
end
case :application.get_key(app, :modules) do
{:ok, modules} ->
if module in modules do
app
end

:undefined ->
nil
end
:undefined ->
nil
end
end)
end
end
2 changes: 1 addition & 1 deletion lib/elixir_sense/core/introspection.ex
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ defmodule ElixirSense.Core.Introspection do
[]
end

for {f, a} <- module.module_info(:exports) do
for {f, a} <- exports do
{f_dropped, a_dropped} = drop_macro_prefix({f, a})

kind =
Expand Down

0 comments on commit 4b84d06

Please sign in to comment.