Skip to content

Commit

Permalink
chore: remove then to be compatible with elixir 1.11
Browse files Browse the repository at this point in the history
  • Loading branch information
David-Klemenc committed Oct 2, 2023
1 parent b4167c0 commit c76d540
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dialyxir/project.ex
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@ defmodule Dialyxir.Project do
end
end

if System.version() |> Version.parse!() |> then(&(&1.major >= 1 and &1.minor >= 15)) do
if System.version() |> Version.parse!() |> (&(&1.major >= 1 and &1.minor >= 15)).() do
defp app_dep_specs(app) do
# Values returned by :optional_applications are also in :applications.
dependencies = Application.spec(app, :applications) || []
Expand Down

0 comments on commit c76d540

Please sign in to comment.