Commit 86704de8380cf9b19f03c6096140694553e7904b

Stephen Moloney 2017-03-02T23:10:01

resolve conflict with Kernel.apply

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/lib/ex_ovh/transformation/url.ex b/lib/ex_ovh/transformation/url.ex
index 56348ae..4d3ab3c 100644
--- a/lib/ex_ovh/transformation/url.ex
+++ b/lib/ex_ovh/transformation/url.ex
@@ -13,9 +13,10 @@ defmodule ExOvh.Transformation.Url do
     Map.put(conn, :request, request)
     |> Map.put(:completed_transformations, trans ++ [:url])
   end
+
   @spec apply(HTTPipe.Conn.t, map, atom) :: HTTPipe.Conn.t
-  def apply(%HTTPipe.Conn{request: %HTTPipe.Request{url: url}} = conn, query_string_map, client) when query_string_map == %{} do
-    apply(conn, client)
+  def apply(%HTTPipe.Conn{} = conn, query_string_map, client) when query_string_map == %{} do
+    __MODULE__.apply(conn, client)
   end
   def apply(%HTTPipe.Conn{request: %HTTPipe.Request{url: url}} = conn, query_string_map, client) do
     ovh_config = client.ovh_config()