Functions to help with common tasks on Elixir.
Credo is a tools to improve your cod, refactor, consistency, etc.
When a function has >= 9 conditions (by default is 9) to accomplish a warning was shown.
In this function we have 9 conditions on our cond
that is the reason.
If you remove, for example, true -> nil
the warning is removed.
This warning is showed because on Elixir this type of practice are...disgunting.
Source https://hexdocs.pm/credo/Credo.Check.Refactor.CyclomaticComplexity.html