From 74a082055c8e8bb5c6383427e8c2af26807eaabd Mon Sep 17 00:00:00 2001 From: Brendan Kilfoil Date: Wed, 16 Aug 2023 19:38:47 +1200 Subject: [PATCH] Format --- lib/ex_aws/credentials_ini/file.ex | 3 ++- lib/ex_aws/instance_meta.ex | 3 ++- lib/ex_aws/instance_meta_token_provider.ex | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/ex_aws/credentials_ini/file.ex b/lib/ex_aws/credentials_ini/file.ex index 47002fd9..eb6d1e79 100644 --- a/lib/ex_aws/credentials_ini/file.ex +++ b/lib/ex_aws/credentials_ini/file.ex @@ -102,7 +102,8 @@ if Code.ensure_loaded?(ConfigParser) do "", [{"x-amz-sso_bearer_token", access_token}], Map.get(config, :http_opts, []) - ) |> ExAws.Request.maybe_transform_response()}, + ) + |> ExAws.Request.maybe_transform_response()}, {_, {:ok, body}} <- {:decode, config[:json_codec].decode(body_raw)} do {:ok, body} else diff --git a/lib/ex_aws/instance_meta.ex b/lib/ex_aws/instance_meta.ex index 8278bb16..518335a5 100644 --- a/lib/ex_aws/instance_meta.ex +++ b/lib/ex_aws/instance_meta.ex @@ -15,7 +15,8 @@ defmodule ExAws.InstanceMeta do # If we're using IMDSv2, we will need to pass in session token headers. headers = get_request_headers(config, fallback) - case config.http_client.request(:get, url, "", headers, http_opts()) |> ExAws.Request.maybe_transform_response() do + case config.http_client.request(:get, url, "", headers, http_opts()) + |> ExAws.Request.maybe_transform_response() do {:ok, %{status_code: 200, body: body}} -> body diff --git a/lib/ex_aws/instance_meta_token_provider.ex b/lib/ex_aws/instance_meta_token_provider.ex index 28d7b18b..e93ffefe 100644 --- a/lib/ex_aws/instance_meta_token_provider.ex +++ b/lib/ex_aws/instance_meta_token_provider.ex @@ -82,7 +82,8 @@ defmodule ExAws.InstanceMetaTokenProvider do "", token_ttl_seconds_headers(config), follow_redirect: true - ) |> ExAws.Request.maybe_transform_response() do + ) + |> ExAws.Request.maybe_transform_response() do {:ok, %{status_code: 200, body: body}} -> body