From c4e50e5c9ec852e9c4cb45b2cdf7871fe7f6a058 Mon Sep 17 00:00:00 2001 From: Alan Heywood Date: Fri, 20 Mar 2026 08:37:20 +1000 Subject: [PATCH] fix: remove unreachable code path causing warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove the unreachable code path that was causing the following warning to be shown each time the test suite was run in a project that uses ash_sql under elixir 1.20.0-rc.3-otp-28 warning: the following clause cannot match because the previous clauses already matched all possible values: version -> it attempts to match on the result of: System.get_env("ASH_VERSION") which has the already matched type: dynamic(nil or binary()) where "version" was given the type: # type: dynamic(nil or binary()) # from: mix.exs:114:7 version type warning found at: │ 114 │ version -> │ ~ │ └─ mix.exs:114:15: AshSql.MixProject.ash_version/1 --- mix.exs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/mix.exs b/mix.exs index 2026c97..d3b84ee 100644 --- a/mix.exs +++ b/mix.exs @@ -108,11 +108,8 @@ defmodule AshSql.MixProject do "main" -> [git: "https://github.com/ash-project/ash.git", override: true] - version when is_binary(version) -> - "~> #{version}" - version -> - version + "~> #{version}" end end