Commit 8f9f620
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/11 parent 075343a commit 8f9f620
1 file changed
Lines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | 111 | | |
115 | | - | |
| 112 | + | |
116 | 113 | | |
117 | 114 | | |
118 | 115 | | |
| |||
0 commit comments