Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Since Elixir 1.17 this code was generating a warning: https://github.com/CargoSense/compare_chain/blob/7acb340ee6a6ae32349874f8c7bcd569728e83b5/lib/compare_chain.ex#L140-L146 Specifically, `a < b` generates a warning about comparing structs. This is not unexpected (it's the whole point of `CompareChain` after all). But there isn't a good way to circumvent the warning. See the discussion here: https://elixirforum.com/t/elixir-v1-18-0-rc-0-released/68015/36 This PR works around the issue by removing that code and instead explaining what's going on in an info block:  I also tacked on a small refactor.
- Loading branch information