Skip to content

Commit

Permalink
Merge pull request #519 from David-Klemenc/then
Browse files Browse the repository at this point in the history
chore: remove then to be compatible with elixir 1.11
  • Loading branch information
jeremyjh committed Oct 3, 2023
2 parents b4167c0 + c76d540 commit f15b991
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dialyxir/project.ex
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 f15b991

Please sign in to comment.