Skip to content

Commit

Permalink
fix crash on elixir < 1.16
Browse files Browse the repository at this point in the history
  • Loading branch information
lukaszsamson committed Dec 29, 2024
1 parent abad1f8 commit 6572c64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/language_server/lib/language_server/ast_utils.ex
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ defmodule ElixirLS.LanguageServer.AstUtils do
end

match?({:., _meta, [Access, :get]}, form) and match?([_ | _], args) ->
if Keyword.get(meta, :from_brackets) or
if Keyword.get(meta, :from_brackets) ||
Version.match?(System.version(), "< 1.16.0-dev") do
[arg | _] = args

Expand Down

0 comments on commit 6572c64

Please sign in to comment.