Skip to content

Commit

Permalink
Fix function spec for Response.decode/2
Browse files Browse the repository at this point in the history
  • Loading branch information
bernardd committed Dec 18, 2024
1 parent 079a3c8 commit b080894
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clients/gax/lib/google_api/gax/response.ex
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ defmodule GoogleApi.Gax.Response do
## Returns
* `{:ok, struct()}` on success
* `{:error, Tesla.Env.t}` on failure
* `{:error, any()}` on failure
"""
@spec decode({:ok, Tesla.Env.t()}, keyword()) :: {:ok, struct()} | {:error, Tesla.Env.t()}
@spec decode({:ok, Tesla.Env.t()} | {:error, any()}, keyword()) :: {:ok, struct()} | {:error, any()}
def decode(env, opts \\ [])

def decode({:error, reason}, _), do: {:error, reason}
Expand Down

0 comments on commit b080894

Please sign in to comment.