From dbc1fc42c48727708a7582fb5ae37986b5cddf53 Mon Sep 17 00:00:00 2001 From: Jordan Day Date: Sun, 11 Jan 2015 16:07:06 -0600 Subject: [PATCH] small tweak for normalize_list fn --- lib/httparrot/p_handler.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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