Skip to content

Commit 702f390

Browse files
committed
fix dialyzer issues
1 parent 0983a3e commit 702f390

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

apps/language_server/lib/language_server/application.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ defmodule ElixirLS.LanguageServer.Application do
4444
:ok
4545
end
4646

47+
@spec restart() :: no_return()
4748
def restart() do
4849
Application.put_env(:language_server, :restart, true)
4950
System.halt(0)

apps/language_server/lib/language_server/providers/hover/docs.ex

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,9 +251,6 @@ defmodule ElixirLS.LanguageServer.Providers.Hover.Docs do
251251
{line, column} = context.end
252252
call_arity = Metadata.get_call_arity(metadata, mod, fun, line, column) || :any
253253
get_all_docs({mod, fun, call_arity}, metadata, env, kind)
254-
255-
_ ->
256-
nil
257254
end
258255
end
259256

apps/language_server/lib/language_server/providers/plugins/plugin.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
defmodule ElixirLS.LanguageServer.Plugin do
22
alias ElixirSense.Core.Metadata
33
alias ElixirSense.Core.State
4-
@type suggestion :: ElixirLS.LanguageServer.Providers.Suggestion.generic()
4+
@type suggestion :: ElixirLS.LanguageServer.Providers.Completion.Suggestion.generic()
55

66
@type context :: term
77
@type acc :: %{context: context(), result: list(suggestion())}

apps/language_server/mix.exs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@ defmodule ElixirLS.LanguageServer.MixProject do
4747
github: "elixir-lsp/path_glob", ref: @dep_versions[:path_glob_vendored]},
4848
{:patch, "~> 0.12.0", only: [:dev, :test], runtime: false},
4949
{:benchee, "~> 1.0", only: :dev, runtime: false},
50-
{:schematic_v, github: "elixir-lsp/schematic_vendored", ref: @dep_versions[:schematic_vendored]},
50+
{:schematic_v,
51+
github: "elixir-lsp/schematic_vendored", ref: @dep_versions[:schematic_vendored]},
5152
{:typed_struct, "~> 0.3"}
5253
]
5354
end

0 commit comments

Comments
 (0)