Commit 747556d1 authored by Mikko Ahlroth's avatar Mikko Ahlroth

Add comment about bogus compiler warnings

parent 299e5fcb
...@@ -62,6 +62,9 @@ defmodule CodeStatsWeb.PreferencesController do ...@@ -62,6 +62,9 @@ defmodule CodeStatsWeb.PreferencesController do
|> redirect(to: Routes.preferences_path(conn, :edit)) |> redirect(to: Routes.preferences_path(conn, :edit))
else else
err -> err ->
# In the case below, the compiler and dialyzer will warn about the clauses. That is an
# Elixir bug related to the with construct, so the warnings are bogus.
# See: https://github.com/elixir-lang/elixir/issues/6738
error_changeset = error_changeset =
case err do case err do
{:old_pass, false} -> {:old_pass, false} ->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment