diff --git a/clients/gax/lib/google_api/gax/response.ex b/clients/gax/lib/google_api/gax/response.ex index b7eb0ba345..17e9657b85 100644 --- a/clients/gax/lib/google_api/gax/response.ex +++ b/clients/gax/lib/google_api/gax/response.ex @@ -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}