diff --git a/lib/httparrot/p_handler.ex b/lib/httparrot/p_handler.ex index 4cf1e0e..d795d49 100644 --- a/lib/httparrot/p_handler.ex +++ b/lib/httparrot/p_handler.ex @@ -112,7 +112,7 @@ defmodule HTTParrot.PHandler do end end - defp normalize_list(list) when list == [], do: [{}] + defp normalize_list([]), do: [{}] defp normalize_list(list), do: list end