diff --git a/lib/elixir_sense/core/applications.ex b/lib/elixir_sense/core/applications.ex index 566b5026..10da3fc6 100644 --- a/lib/elixir_sense/core/applications.ex +++ b/lib/elixir_sense/core/applications.ex @@ -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 diff --git a/lib/elixir_sense/core/introspection.ex b/lib/elixir_sense/core/introspection.ex index 54c81223..ae5c9eb6 100644 --- a/lib/elixir_sense/core/introspection.ex +++ b/lib/elixir_sense/core/introspection.ex @@ -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 =