Skip to content

Commit 8f9f620

Browse files
authored
fix: remove unreachable code path causing warning (#221)
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
1 parent 075343a commit 8f9f620

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

mix.exs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,11 +108,8 @@ defmodule AshSql.MixProject do
108108
"main" ->
109109
[git: "https://github.com/ash-project/ash.git", override: true]
110110

111-
version when is_binary(version) ->
112-
"~> #{version}"
113-
114111
version ->
115-
version
112+
"~> #{version}"
116113
end
117114
end
118115

0 commit comments

Comments
 (0)