We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1d59c7 commit 7d011e9Copy full SHA for 7d011e9
apps/language_server/lib/language_server/source_file/path.ex
@@ -57,7 +57,7 @@ defmodule ElixirLS.LanguageServer.SourceFile.Path do
57
path |> expand(project_dir) |> convert_separators_to_native()
58
end
59
60
- def to_uri(path) when is_binary(path) do
+ def to_uri(path) when not is_nil(path) do
61
path =
62
path
63
|> expand()
@@ -66,8 +66,7 @@ defmodule ElixirLS.LanguageServer.SourceFile.Path do
66
to_uri_impl(path)
67
68
69
- def to_uri(path, project_dir)
70
- when is_binary(path) and (is_binary(project_dir) or is_nil(project_dir)) do
+ def to_uri(path, project_dir) when not is_nil(path) do
71
72
if project_dir == nil do
73
expand(path)
0 commit comments