Skip to content

Commit

Permalink
Fix overlapping typespec
Browse files Browse the repository at this point in the history
HTTPoison already has a typespec for process_request_headers

    lib/forcex/api/http.ex:8:overlapping_contract
    Overloaded contract for Forcex.Api.Http.process_request_headers/1 has
    overlapping domains; such contracts are currently unsupported and
    are simply ignored.
  • Loading branch information
mmrobins committed Sep 18, 2018
1 parent 210e651 commit 77e8488
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion lib/forcex/api/http.ex
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ defmodule Forcex.Api.Http do
defp process_response(%HTTPoison.Response{body: body, status_code: 200}), do: body
defp process_response(%HTTPoison.Response{body: body, status_code: status}), do: {status, body}

@spec process_request_headers(list({String.t, String.t})) :: list({String.t, String.t})
def process_request_headers(headers), do: headers ++ @user_agent ++ @accept ++ @accept_encoding

@spec process_headers(list({String.t, String.t})) :: map
Expand Down

0 comments on commit 77e8488

Please sign in to comment.