Skip to content

Commit 6064b0f

Browse files
committed
run formatter
1 parent af81311 commit 6064b0f

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

lib/elixir_sense/core/introspection.ex

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -642,8 +642,8 @@ defmodule ElixirSense.Core.Introspection do
642642
mods = [current_module | imports]
643643

644644
case Enum.find(mods, fn mod ->
645-
find_metadata_function({mod, fun}, current_module, imports, mods_funs) != {nil, nil}
646-
end) do
645+
find_metadata_function({mod, fun}, current_module, imports, mods_funs) != {nil, nil}
646+
end) do
647647
nil -> {nil, nil}
648648
mod -> {mod, fun}
649649
end
@@ -659,12 +659,14 @@ defmodule ElixirSense.Core.Introspection do
659659

660660
defp find_metadata_function({mod, fun}, _current_module, _imports, mods_funs) do
661661
# TODO types from metadata
662-
found_in_metadata = case mods_funs[mod] do
663-
nil ->
664-
false
665-
funs ->
666-
Enum.any?(funs, fn {{f, _a}, _} -> f == fun end)
667-
end
662+
found_in_metadata =
663+
case mods_funs[mod] do
664+
nil ->
665+
false
666+
667+
funs ->
668+
Enum.any?(funs, fn {{f, _a}, _} -> f == fun end)
669+
end
668670

669671
if found_in_metadata or ModuleInfo.has_function?(mod, fun) or has_type?(mod, fun) do
670672
{mod, fun}

0 commit comments

Comments
 (0)