diff options
author | Hentioe <me@bluerain.io> | 2020-10-26 06:28:45 +0800 |
---|---|---|
committer | Hentioe <me@bluerain.io> | 2020-10-26 06:28:45 +0800 |
commit | 7710ae5b5e30a5cf0d504b0a34fb11fd5b70b82c (patch) | |
tree | 25165c12378a4d105de1c888a6c78615c46a741f | |
parent | Fix typespecs (diff) |
Fix returns type
-rw-r--r-- | lib/azure_ex/request.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/azure_ex/request.ex b/lib/azure_ex/request.ex index 836f9fa..bc6d92b 100644 --- a/lib/azure_ex/request.ex +++ b/lib/azure_ex/request.ex @@ -26,7 +26,7 @@ defmodule AzureEx.Request do @spec handle_response({:ok, HTTPoison.Response.t()}) :: {:ok, result} | {:error, error} def handle_response({:ok, %HTTPoison.Response{body: body}}) do - body |> Jason.decode!(keys: :atoms) + {:ok, Jason.decode!(body, keys: :atoms)} end @spec send(:get, String.t(), params) :: httpoison_result |