beyond-all-reason / teiserver

Middleware server for online gaming
https://www.beyondallreason.info/
MIT License
46 stars 46 forks source link

Fix all dialyzer red errors #347

Closed jauggy closed 6 days ago

jauggy commented 1 week ago

Context

Try run

mix dialyzer

on master branch - you will get some red errors.

Test Steps

On this branch run:

mix dialyzer

No red errors.

jauggy commented 1 week ago

Note one of the solutions was taken from here: https://github.com/elixir-lang/elixir/issues/8862#issuecomment-470098633

Another solution was taken from here: https://elixirforum.com/t/dialyzer-error-the-pattern-can-never-match-the-type/64666/4

jauggy commented 6 days ago

This might not be needed if https://github.com/beyond-all-reason/teiserver/pull/308 is merged