Skip to content

Commit

Permalink
add type spec to response
Browse files Browse the repository at this point in the history
  • Loading branch information
reset committed Jan 19, 2015
1 parent 15bd2e4 commit fea407f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/consul/response.ex
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
#

defmodule Consul.Response do
@type t :: HTTPoison.Response.t

def consul_index(%{headers: %{"X-Consul-Index" => index}}), do: index
def consul_index(_), do: nil
end

0 comments on commit fea407f

Please sign in to comment.