Commit 3b3c987
authored
fix: remove unreachable code path causing warning (#718)
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 045da4f commit 3b3c987
1 file changed
+2
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
222 | 222 | | |
223 | 223 | | |
224 | 224 | | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | 225 | | |
229 | | - | |
| 226 | + | |
230 | 227 | | |
231 | 228 | | |
232 | 229 | | |
| |||
241 | 238 | | |
242 | 239 | | |
243 | 240 | | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | 241 | | |
248 | | - | |
| 242 | + | |
249 | 243 | | |
250 | 244 | | |
251 | 245 | | |
| |||
0 commit comments