From c76d540c5aab9384a2086c7b3c676a747707a458 Mon Sep 17 00:00:00 2001 From: David Klemenc Date: Mon, 2 Oct 2023 21:04:39 +0200 Subject: [PATCH] chore: remove then to be compatible with elixir 1.11 --- lib/dialyxir/project.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dialyxir/project.ex b/lib/dialyxir/project.ex index 84b9dcb..35cfcab 100644 --- a/lib/dialyxir/project.ex +++ b/lib/dialyxir/project.ex @@ -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) || []