   end
 
   defp stale_stream(sources, targets) do
-    modified_target = targets |> Enum.map(&last_modified(&1)) |> Enum.min
+    modified_target = targets |> Enum.map(&last_modified/1) |> Enum.min
 
     Stream.filter(sources, fn(source) ->
       last_modified(source) > modified_target

    []
  end

  defp no_proxy_list(no_proxy_str) do
    no_proxy_str
    |> String.split(",")
    |> Enum.map(&to_charlist/1)
  end

  defp proxy_setup(scheme, proxy, no_proxy) do

  defp proxy_env do
    http_proxy  = System.get_env("HTTP_PROXY")  || System.get_env("http_proxy")
    https_proxy = System.get_env("HTTPS_PROXY") || System.get_env("https_proxy")
    no_proxy    = no_proxy_env() |> no_proxy_list()

    {proxy_setup(:http, http_proxy, no_proxy), proxy_setup(:https, https_proxy, no_proxy)}
  end
