Skip to content

Commit

Permalink
Switch to Erlang version check that works on X.X.X.X versions
Browse files Browse the repository at this point in the history
  • Loading branch information
zachallaun committed Jul 23, 2024
1 parent 1b67e87 commit 595d281
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions apps/common/lib/elixir/features.ex
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
defmodule Elixir.Features do
alias Lexical.VM.Versions

def with_diagnostics? do
function_exported?(Code, :with_diagnostics, 1)
end
Expand Down Expand Up @@ -36,6 +34,6 @@ defmodule Elixir.Features do
Issue to track: https://github.com/erlang/otp/issues/8682
"""
def can_use_compressed_ets_table? do
Version.match?(Versions.current().erlang, "< 27.0.0")
System.otp_release() < "27"
end
end

0 comments on commit 595d281

Please sign in to comment.