Environment
- Elixir & Erlang/OTP versions (elixir --version): Erlang/OTP 21 [erts-10.0] [ source] [64-bit]
Elixir 1.7.0 (Compiled with Erlang/OTP 20) - Operating system: Ubuntu 16.04
Current behavior
After updated Elixir from 1.6 to 1.7 the params variable will always be equal to %{} outside the if statements
params = %{}
if Map.has_key?(entities, "email") do
params = Map.put_new(params, :email, get_values(entities["email"]))
end
Expected behavior
The params variable should be correctly assigned for now and updating to 1.7 shouldn't break such a code since nothing has been mentioned in the release not of 1.7